mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-12 06:24:29 +08:00
Also accept arguments for when invoked by Makefile.
From-SVN: r14244
This commit is contained in:
parent
171e10fe63
commit
f28a1469fc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user