*** empty log message ***

This commit is contained in:
ceriel 1987-03-17 00:13:03 +00:00
parent c5b11f6ad3
commit 49714af3e6

View file

@ -1,7 +1,12 @@
FL=succes FL=succes
TRIES='-ll and -lln' TRIES=
case X$# in case X$# in
X0) X0)
if (.Xlex) > /dev/null 2>&1
then
TRY=`.Xlex`
else TRY=-lln
fi
myecho "trying to find your lex library ..." myecho "trying to find your lex library ..."
cat > x.l <<'EOF' cat > x.l <<'EOF'
%% %%
@ -13,7 +18,7 @@ EOF
exit 2 exit 2
fi fi
cat > trylib <<'EOF' cat > trylib <<'EOF'
if cc $1 lex.yy.c > /dev/null 2>&1 if cc lex.yy.c $1 > /dev/null 2>&1
then then
rm -f lex.yy.* a.out rm -f lex.yy.* a.out
exit 0 exit 0
@ -21,14 +26,12 @@ else
exit 1 exit 1
fi fi
EOF EOF
if sh trylib -ll if sh trylib $TRY
then then
LEX=-ll LEX=$TRY
elif sh trylib -ln
then
LEX=-lln
else else
FL=fail FL=fail
TRIES=$TRY
fi fi
;; ;;
*) if sh trylib $1 *) if sh trylib $1
@ -67,3 +70,5 @@ EOF
;; ;;
esac esac
rm -f x.l trylib rm -f x.l trylib
echo echo "$LEX" > .Xlex
chmod +x .Xlex