From 3bfe375da4056cb4ffd84ed9432b25016e46a4a3 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Mon, 22 Dec 2008 16:56:39 +0000 Subject: automatic detection of el.c --- src/makecolumns.sh | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'src') 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 @@ #!/bin/sh -EL=`dirname $0`/../bin/el +export LANG=C +export LC_CTYPE=C +export LC_ALL=C + +[ -f /usr/local/bin/el ] && EL=/usr/local/bin/el +[ -f `dirname $0`/../bin/el ] && EL=`dirname $0`/../bin/el + +if [ -z "${EL}" ]; then + echo "el not found. Get it at 'cvs -d :pserver:anoncvs@cvs.erdgeist.org:/home/cvsroot co el'" + exit 1 +fi + HO=`dirname $0`/../bin/hexout -if [ $# -ne 2 ]; then +if [ $# -ne 1 ]; then echo "Syntax: $0 [phonebookdirectory]" exit 1 fi make -f Makefile all +mkdir ../work +cd ../work + ../bin/decompress $1/streets.tl cat file_* > streets -- cgit v1.2.3