# HG changeset patch # User "Yann E. MORIN" # Date 1258047733 -3600 # Node ID f935634ef9006086096a41cc11644ee85680bd6f # Parent 9ad2a3fd1fcc4fc11dd6c285485e608c3fcf7e3a 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. diff -r 9ad2a3fd1fcc -r f935634ef900 scripts/addToolVersion.sh --- a/scripts/addToolVersion.sh Tue Nov 10 19:32:11 2009 +0100 +++ b/scripts/addToolVersion.sh Thu Nov 12 18:42:13 2009 +0100 @@ -5,7 +5,12 @@ 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 diff -r 9ad2a3fd1fcc -r f935634ef900 scripts/patch-renumber.sh --- a/scripts/patch-renumber.sh Tue Nov 10 19:32:11 2009 +0100 +++ b/scripts/patch-renumber.sh Thu Nov 12 18:42:13 2009 +0100 @@ -5,7 +5,12 @@ 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_