Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:
* Use ${CONFIG_SHELL:-/bin/sh} instead of just /bin/sh when creating temporary shell scripts.
This commit is contained in:
parent
cb575a16ce
commit
da8e22116c
6
gnu/dist/gcc/gcc/genmultilib
vendored
6
gnu/dist/gcc/gcc/genmultilib
vendored
@ -128,7 +128,7 @@ echo "static const char *const multilib_raw[] = {"
|
||||
# by creating a temporary shell script which invokes itself.
|
||||
rm -f tmpmultilib
|
||||
cat >tmpmultilib <<\EOF
|
||||
#!/bin/sh
|
||||
#!${CONFIG_SHELL:-/bin/sh}
|
||||
# This recursive script basically outputs all combinations of its
|
||||
# input arguments, handling mutually exclusive sets of options by
|
||||
# repetition. When the script is called, ${initial} is the list of
|
||||
@ -167,7 +167,7 @@ rm -f tmpmultilib
|
||||
if [ -n "${exceptions}" ]; then
|
||||
rm -f tmpmultilib2
|
||||
cat >tmpmultilib2 <<\EOF
|
||||
#!/bin/sh
|
||||
#!${CONFIG_SHELL:-/bin/sh}
|
||||
# This recursive script weeds out any combination of multilib
|
||||
# switches that should not be generated. The output looks like
|
||||
# a list of subdirectory names with leading and trailing slashes.
|
||||
@ -247,7 +247,7 @@ fi
|
||||
# In other words, we must output all combinations of matches.
|
||||
rm -f tmpmultilib2
|
||||
cat >tmpmultilib2 <<\EOF
|
||||
#!/bin/sh
|
||||
#!${CONFIG_SHELL:-/bin/sh}
|
||||
# The positional parameters are a list of matches to consider.
|
||||
# ${dirout} is the directory name and ${optout} is the current list of
|
||||
# options.
|
||||
|
6
gnu/dist/gcc4/gcc/genmultilib
vendored
6
gnu/dist/gcc4/gcc/genmultilib
vendored
@ -137,7 +137,7 @@ cd ./tmpmultilib.$$ || exit 1
|
||||
# by creating a temporary shell script which invokes itself.
|
||||
rm -f tmpmultilib
|
||||
cat >tmpmultilib <<\EOF
|
||||
#!/bin/sh
|
||||
#!${CONFIG_SHELL:-/bin/sh}
|
||||
# This recursive script basically outputs all combinations of its
|
||||
# input arguments, handling mutually exclusive sets of options by
|
||||
# repetition. When the script is called, ${initial} is the list of
|
||||
@ -173,7 +173,7 @@ combinations=`initial=/ ./tmpmultilib ${options}`
|
||||
# If there exceptions, weed them out now
|
||||
if [ -n "${exceptions}" ]; then
|
||||
cat >tmpmultilib2 <<\EOF
|
||||
#!/bin/sh
|
||||
#!${CONFIG_SHELL:-/bin/sh}
|
||||
# This recursive script weeds out any combination of multilib
|
||||
# switches that should not be generated. The output looks like
|
||||
# a list of subdirectory names with leading and trailing slashes.
|
||||
@ -272,7 +272,7 @@ fi
|
||||
# In other words, we must output all combinations of matches.
|
||||
rm -f tmpmultilib2
|
||||
cat >tmpmultilib2 <<\EOF
|
||||
#!/bin/sh
|
||||
#!${CONFIG_SHELL:-/bin/sh}
|
||||
# The positional parameters are a list of matches to consider.
|
||||
# ${dirout} is the directory name and ${optout} is the current list of
|
||||
# options.
|
||||
|
Loading…
Reference in New Issue
Block a user