From c863d223faa360a299181b071c03d7a447644175 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Thu, 12 Nov 2009 18:42:13 +0100 Subject: 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 --git a/scripts/addToolVersion.sh b/scripts/addToolVersion.sh index b71ee9a..876d4e2 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 diff --git a/scripts/patch-renumber.sh b/scripts/patch-renumber.sh index 08ec1be..3604df5 100755 --- a/scripts/patch-renumber.sh +++ b/scripts/patch-renumber.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" doUsage() { cat <<_EOF_ -- cgit v0.10.2-6-g49f6