diff options
author | carsten <> | 2008-06-03 13:10:53 +0000 |
---|---|---|
committer | carsten <> | 2008-06-03 13:10:53 +0000 |
commit | 6e94a73e8a20fa4a673a0a0b5f762c45b1b9e100 (patch) | |
tree | 163a3ec7c73c9e2a419391b83fd47a3187e06a84 | |
parent | 8c9606c87dddd1ad12214209d883cd24d01ea359 (diff) |
adding a script to auto decompress data from a CD image
-rw-r--r-- | src/makecolumns.sh | 22 |
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 | ||
3 | EL=`dirname $0`/el | 3 | EL=`dirname $0`/../bin/el |
4 | HO=`dirname $0`/hexout | 4 | HO=`dirname $0`/../bin/hexout |
5 | 5 | ||
6 | numfiles=`ls file_* | wc -l` | 6 | if [ $# -ne 2 ]; then |
7 | echo "Syntax: $0 [phonebookdirectory]" | ||
8 | exit 1 | ||
9 | fi | ||
10 | |||
11 | make -f Makefile all | ||
12 | |||
13 | ../bin/decompress $1/streets.tl | ||
14 | |||
15 | cat file_* > streets | ||
16 | rm file_* | ||
17 | |||
18 | ../bin/decompress $1/phonebook.db | ||
19 | |||
20 | numfiles=`find . -name file_\* | wc -l` | ||
7 | 21 | ||
8 | for column in `jot - 0 11 1`; do | 22 | for 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 | |||
35 | else | 49 | else |
36 | echo Could not convert streetindexes | 50 | echo Could not convert streetindexes |
37 | fi | 51 | fi |
52 | |||
53 | find . -name file_\* -delete | ||