summaryrefslogtreecommitdiff
path: root/scripts/testheader.inc
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/testheader.inc
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/testheader.inc')
-rw-r--r--scripts/testheader.inc16
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/testheader.inc b/scripts/testheader.inc
index 232e1e0a1..44b5585ad 100644
--- a/scripts/testheader.inc
+++ b/scripts/testheader.inc
@@ -31,7 +31,7 @@ function RESTART()
function EXE()
{
printf "EXE " | tee -a ${LOGFILE}
- if [ ${active} == 1 ] ; then
+ if [ ${active} = 1 ] ; then
$1 $2 $3 "$4"
return 0;
else
@@ -49,10 +49,10 @@ function EXE()
function AVR()
{
printf "AVR " | tee -a ${LOGFILE}
- if [ "${ARCH}X" == "avr32X" ] ; then
+ if [ "${ARCH}X" = "avr32X" ] ; then
echo "mk $2 UNSUPPORTED \"$4\" $5 $6" | tee -a ${LOGFILE}
return 1;
- elif [ ${active} == 1 ] ; then
+ elif [ ${active} = 1 ] ; then
$1 $2 "$3" "$4"
return 0;
else
@@ -72,22 +72,22 @@ function skip()
{
printf "skip %-8s" "$1" | tee -a ${LOGFILE}
printf "%-32s" "$2" | tee -a ${LOGFILE}
- if [ "$3X" == "OKX" ] ; then
+ if [ "$3X" = "OKX" ] ; then
printf "%-16s" "DISABLED" | tee -a ${LOGFILE}
if [ "${4}X" != "X" ] ; then
printf "%-64s" "\"$4\"" | tee -a ${LOGFILE}
fi
- elif [ "$3X" == "FAILX" ] ; then
+ elif [ "$3X" = "FAILX" ] ; then
printf "%-16s" "DISABLED" | tee -a ${LOGFILE}
if [ "${4}X" != "X" ] ; then
printf "%-64s" "\"$4\"" | tee -a ${LOGFILE}
fi
- elif [ "$3X" == "BROKENX" ] ; then
+ elif [ "$3X" = "BROKENX" ] ; then
printf "%-16s" "DISABLED" | tee -a ${LOGFILE}
if [ "${4}X" != "X" ] ; then
printf "%-64s" "\"$4\"" | tee -a ${LOGFILE}
fi
- elif [ "$3X" == "DISABLEDX" ] ; then
+ elif [ "$3X" = "DISABLEDX" ] ; then
printf "%-16s" "DISABLED" | tee -a ${LOGFILE}
if [ "${4}X" != "X" ] ; then
printf "%-64s" "\"$4\"" | tee -a ${LOGFILE}
@@ -104,7 +104,7 @@ function skip()
function bb()
{
printf "%-8s" "bb" | tee -a ${LOGFILE}
- if [ ${busybox} == 1 ] ; then
+ if [ ${busybox} = 1 ] ; then
printf "%-8s" "$1" | tee -a ${LOGFILE}
$1 $2 $3 $4 $5 $6
return 0;