summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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