diff options
author | erdgeist <> | 2008-12-22 16:56:39 +0000 |
---|---|---|
committer | erdgeist <> | 2008-12-22 16:56:39 +0000 |
commit | 3bfe375da4056cb4ffd84ed9432b25016e46a4a3 (patch) | |
tree | f820bedb79894eba31204d847876a881d5c30215 | |
parent | 64aa9e8b4541d4c008f3a669dff0cf01d0c5dcf9 (diff) |
automatic detection of el.c
-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 |