diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-11-12 18:42:13 +0100 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-11-12 18:42:13 +0100 |
commit | c863d223faa360a299181b071c03d7a447644175 (patch) | |
tree | c1a71b0f975b1d649c69b7a5c2fba17151d83955 /scripts/addToolVersion.sh | |
parent | 33374cac3944ce21b21fba4bb14ebf15e24c0b94 (diff) | |
download | crosstool-ng-c863d223faa360a299181b071c03d7a447644175.tar.gz crosstool-ng-c863d223faa360a299181b071c03d7a447644175.tar.bz2 crosstool-ng-c863d223faa360a299181b071c03d7a447644175.zip |
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.
Diffstat (limited to 'scripts/addToolVersion.sh')
-rwxr-xr-x | scripts/addToolVersion.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/addToolVersion.sh b/scripts/addToolVersion.sh index b71ee9ae..876d4e24 100755 --- a/scripts/addToolVersion.sh +++ b/scripts/addToolVersion.sh @@ -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 |