Also accept arguments for when invoked by Makefile.

From-SVN: r14244
This commit is contained in:
Doug Evans 1997-06-13 23:36:41 +00:00
parent 171e10fe63
commit f28a1469fc
1 changed files with 11 additions and 2 deletions

View File

@ -23,8 +23,17 @@
rm -f Make-lang
touch Make-lang
savesrcdir=$srcdir
savesubdirs="$subdirs"
# We can either be invoked with . from configure or from Makefile.
# Some shells can't pass arguments to source'd scripts.
# ??? This needs some rethinking.
if [ x"$1" != x ] ; then
savesrcdir=$1
savesubdirs=$2
else
savesrcdir=$srcdir
savesubdirs=$subdirs
fi
for subdir in . $savesubdirs
do