Minor fixes for the doregtest script.

runtime/machdeps/doregtest:
    Fix some things identified by ShellCheck.
This commit is contained in:
Julien Fischer
2021-01-13 15:24:23 +11:00
parent e613aabeea
commit f3d68031f5

View File

@@ -4,12 +4,12 @@
# the resulting executable.
if [ $# -ne 1 ]; then
echo "Usage: `basename $0` register-name" 1>&2
echo "Usage: $(basename $0) register-name" 1>&2
exit 1
fi
CFLAGS=
PIC_CFLAGS= $CFLAGS -fpic
PIC_CFLAGS="${CFLAGS} -fpic"
echo Trying register "$1"...
if ../../scripts/mgnuc $CFLAGS "-DREG=\"$1\"" regtest.c regtest2.c -o /tmp/regtest$$ -lm &&