diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/makecolumns.sh | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/makecolumns.sh b/src/makecolumns.sh index 1faa876..e250ec9 100644 --- a/src/makecolumns.sh +++ b/src/makecolumns.sh | |||
@@ -1,15 +1,29 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | EL=`dirname $0`/../bin/el | 3 | export LANG=C |
4 | export LC_CTYPE=C | ||
5 | export LC_ALL=C | ||
6 | |||
7 | [ -f /usr/local/bin/el ] && EL=/usr/local/bin/el | ||
8 | [ -f `dirname $0`/../bin/el ] && EL=`dirname $0`/../bin/el | ||
9 | |||
10 | if [ -z "${EL}" ]; then | ||
11 | echo "el not found. Get it at 'cvs -d :pserver:anoncvs@cvs.erdgeist.org:/home/cvsroot co el'" | ||
12 | exit 1 | ||
13 | fi | ||
14 | |||
4 | HO=`dirname $0`/../bin/hexout | 15 | HO=`dirname $0`/../bin/hexout |
5 | 16 | ||
6 | if [ $# -ne 2 ]; then | 17 | if [ $# -ne 1 ]; then |
7 | echo "Syntax: $0 [phonebookdirectory]" | 18 | echo "Syntax: $0 [phonebookdirectory]" |
8 | exit 1 | 19 | exit 1 |
9 | fi | 20 | fi |
10 | 21 | ||
11 | make -f Makefile all | 22 | make -f Makefile all |
12 | 23 | ||
24 | mkdir ../work | ||
25 | cd ../work | ||
26 | |||
13 | ../bin/decompress $1/streets.tl | 27 | ../bin/decompress $1/streets.tl |
14 | 28 | ||
15 | cat file_* > streets | 29 | cat file_* > streets |