scripts: be POSIXly correct in helper scripts

Fix helper scripts to be POSIXly correct: don't expect '.' (the dot
builtin) to search CWD if it is not in $PATH.
This commit is contained in:
Yann E. MORIN" 2009-11-12 18:42:13 +01:00
parent 33374cac39
commit c863d223fa
2 changed files with 12 additions and 2 deletions

View File

@ -5,7 +5,12 @@ set -e
myname="$0"
# Parse the tools' paths configuration
. "paths.mk"
# It is expected that this script is only to be run from the
# source directory of crosstool-NG, so it is trivial to find
# paths.mk (we can't use ". paths.mk", as POSIX states that
# $PATH should be searched for, and $PATH most probably doe
# not include "."), hence the "./".
. "./paths.mk"
doHelp() {
cat <<-EOF

View File

@ -5,7 +5,12 @@ set -e
myname="$0"
# Parse the tools' paths configuration
. "paths.mk"
# It is expected that this script is only to be run from the
# source directory of crosstool-NG, so it is trivial to find
# paths.mk (we can't use ". paths.mk", as POSIX states that
# $PATH should be searched for, and $PATH most probably doe
# not include "."), hence the "./".
. "./paths.mk"
doUsage() {
cat <<_EOF_