summaryrefslogtreecommitdiff
path: root/scripts/mkpkg
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@anciens.enib.fr>2010-09-20 23:26:08 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2010-09-30 22:08:58 +0200
commit855fdcaed1e14fd736a8f16bb1a1a4a62e43fc20 (patch)
tree30bf854b451b7aedc9fc19bc9ff747b8e6f98c71 /scripts/mkpkg
parent5c6320f1b550b3607cc4ed42a95811381d31395f (diff)
scripts: fix for POSIX compliance
Using two '=' for string comparison is a bashism. Revert to using one, as stated in POSIX 1003.1-2008. Of the three affected scripts, two are explicitly called vi #!/bin/bash. Those two do not _need_ the fix, but gets it nonetheless, in case we later switch to a POSIX-compliant shell for those scripts. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'scripts/mkpkg')
-rwxr-xr-xscripts/mkpkg14
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/mkpkg b/scripts/mkpkg
index af47f4228..4db0fefbc 100755
--- a/scripts/mkpkg
+++ b/scripts/mkpkg
@@ -36,7 +36,7 @@ function process ()
{
make $1 >> ${LOG} 2>&1 || test=${FAIL}
grep "\.tar\." ${LOG} > ${DEPENDENCY}
- if [ ${test} == ${OK} ] ; then
+ if [ ${test} = ${OK} ] ; then
mv ${LOG} ${LOG_OK_FILE}
printf "%-16s" "OK"
if [ "${2}X" != "X" ] ; then
@@ -65,29 +65,29 @@ function build_package ()
{
# echo "BUILD PACKAGE:1=$1 2=$2 3=$3 4=$4 5=$5 6=$6 7=$7"
printf "mk %-32s" "$1"
- if [ "$2X" == "X" ] ; then # no parameters
+ if [ "$2X" = "X" ] ; then # no parameters
clean_files $1
dirclean $1
process $1 "$3"
- elif [ "$2X" == "?X" ] ; then # no parameters
+ elif [ "$2X" = "?X" ] ; then # no parameters
clean_files $1
dirclean $1
process $1 "$3"
- elif [ "$2X" == "OKX" ] ; then # Previous build was OK
+ elif [ "$2X" = "OKX" ] ; then # Previous build was OK
clean_files $1
dirclean $1
process $1 "$3"
- elif [ "$2X" == "FAILX" ] ; then
+ elif [ "$2X" = "FAILX" ] ; then
clean_files $1
dirclean $1
process $1 "$3"
- elif [ "$2X" == "BROKENX" ] ; then
+ elif [ "$2X" = "BROKENX" ] ; then
printf "%-16s" "BROKEN"
if [ "${3}X" != "X" ] ; then
printf "%s" "\"$3\"";
fi
echo
- elif [ "$2X" == "DISABLEDX" ] ; then
+ elif [ "$2X" = "DISABLEDX" ] ; then
printf "%-16s" "DISABLED"
if [ "${3}X" != "X" ] ; then
printf "%s" "\"$3\"";