Update shell files to use /bin/bash and POSIX .
bash's earlier problems with subshells running scripts starting #!/bin/bash seem to be solved, so explicitly mark all scripts as requiring bash. Furthermore, change all source built-ins to prefix the path with "./" as required by POSIX. Together these changes should stop further problems with changes of source built-in semantics in future.
This commit is contained in:
parent
13efab326f
commit
dcee211388
9 changed files with 25 additions and 25 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
# @P@/make.sh
|
||||
#
|
||||
# (c)2009, @AUTHOR@, <@EMAIL@>.
|
||||
|
|
@ -15,19 +15,19 @@ then
|
|||
echo "Configuration file not found???"
|
||||
exit 1
|
||||
fi
|
||||
source "config" # don't fail on error, since last command in config might return false
|
||||
source "./config" # don't fail on error, since last command in config might return false
|
||||
|
||||
|
||||
|
||||
# Get version information
|
||||
source version || exit 1
|
||||
source "./version" || exit 1
|
||||
VERSION="${VERMAJOR}.${VERMINOR}.${VERMICRO}"
|
||||
|
||||
|
||||
|
||||
# Get standard functions
|
||||
[ -z "${VERBOSE}" ] && VERBOSE="0"
|
||||
source scripts/functions.sh || exit 1
|
||||
source "./scripts/functions.sh" || exit 1
|
||||
|
||||
|
||||
# List of directories which will be emptied by clean.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
# @P@/test.sh
|
||||
#
|
||||
# (c)2009, @AUTHOR@, <@EMAIL@>.
|
||||
|
|
@ -33,10 +33,10 @@ print_tests() {
|
|||
echo "---------------------------------------------------------------------"
|
||||
for EXE in obj/tests/*
|
||||
do
|
||||
[ -x ${EXE} ] || continue
|
||||
NAME=$(echo ${EXE} | sed 's,obj/tests/,,')
|
||||
[ -x "${EXE}" ] || continue
|
||||
NAME="$(echo "${EXE}" | sed 's,obj/tests/,,')"
|
||||
echo -ne "${NAME}\t"
|
||||
LD_LIBRARY_PATH="obj" ${EXE} --print-summary
|
||||
LD_LIBRARY_PATH="obj" "${EXE}" --print-summary
|
||||
done
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue