mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-30 08:03:59 +00:00
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:
parent
33374cac39
commit
c863d223fa
@ -5,7 +5,12 @@ set -e
|
|||||||
myname="$0"
|
myname="$0"
|
||||||
|
|
||||||
# Parse the tools' paths configuration
|
# 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() {
|
doHelp() {
|
||||||
cat <<-EOF
|
cat <<-EOF
|
||||||
|
@ -5,7 +5,12 @@ set -e
|
|||||||
myname="$0"
|
myname="$0"
|
||||||
|
|
||||||
# Parse the tools' paths configuration
|
# 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() {
|
doUsage() {
|
||||||
cat <<_EOF_
|
cat <<_EOF_
|
||||||
|
Loading…
x
Reference in New Issue
Block a user