diff options
Diffstat (limited to 'src')
-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 | ||