summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcarsten <>2008-06-03 13:10:53 +0000
committercarsten <>2008-06-03 13:10:53 +0000
commit6e94a73e8a20fa4a673a0a0b5f762c45b1b9e100 (patch)
tree163a3ec7c73c9e2a419391b83fd47a3187e06a84
parent8c9606c87dddd1ad12214209d883cd24d01ea359 (diff)
adding a script to auto decompress data from a CD image
-rw-r--r--src/makecolumns.sh22
1 files changed, 19 insertions, 3 deletions
diff --git a/src/makecolumns.sh b/src/makecolumns.sh
index d53b26b..1faa876 100644
--- a/src/makecolumns.sh
+++ b/src/makecolumns.sh
@@ -1,9 +1,23 @@
1#!/bin/sh 1#!/bin/sh
2 2
3EL=`dirname $0`/el 3EL=`dirname $0`/../bin/el
4HO=`dirname $0`/hexout 4HO=`dirname $0`/../bin/hexout
5 5
6numfiles=`ls file_* | wc -l` 6if [ $# -ne 2 ]; then
7 echo "Syntax: $0 [phonebookdirectory]"
8 exit 1
9fi
10
11make -f Makefile all
12
13../bin/decompress $1/streets.tl
14
15cat file_* > streets
16rm file_*
17
18../bin/decompress $1/phonebook.db
19
20numfiles=`find . -name file_\* | wc -l`
7 21
8for column in `jot - 0 11 1`; do 22for column in `jot - 0 11 1`; do
9 for file in `jot - ${column} ${numfiles} 11`; do 23 for file in `jot - ${column} ${numfiles} 11`; do
@@ -35,3 +49,5 @@ if [ -e 99_Strassenname ]; then
35else 49else
36 echo Could not convert streetindexes 50 echo Could not convert streetindexes
37fi 51fi
52
53find . -name file_\* -delete