From 542ed814f5b1c700efaf946450d1ab02970269c0 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Fri, 5 Dec 1997 05:20:00 +0000 Subject: [PATCH] more compatibility git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4134 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/com_err/compile_et.in | 40 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/lib/com_err/compile_et.in b/lib/com_err/compile_et.in index 8d10636da..8bfba5af1 100755 --- a/lib/com_err/compile_et.in +++ b/lib/com_err/compile_et.in @@ -2,25 +2,23 @@ # $Id$ -case "@srcdir@" in - /*) - srcdir="@srcdir@" - ;; - *) - srcdir="`dirname $0`/@srcdir@" - ;; -esac +while :; do + case "$1" in + -lang*) + shift + shift + ;; + -debug) + shift + ;; + *) + break + ;; + esac +done -file="$srcdir/compile_et.awk" - -if [ $# != 1 ]; then - echo "Usage: compile_et file.et" - exit 1 -fi - -if [ ! -f "$file" ]; then - echo "compile_et: File not found: $file" - exit 1 -fi - -@AWK@ -f "$file" "$1" +for i do + @awk@ ' +#awksrc +' "$i" +done