Fix shellcheck problem in scripts

This commit is contained in:
Maijin 2015-04-29 10:41:18 +02:00
parent 40de063d3f
commit 6aefa441b1
11 changed files with 18 additions and 18 deletions

View File

@ -8,5 +8,5 @@
acr -p
if [ -n "$1" ]; then
echo "./configure $*"
./configure "$@"
./configure $*
fi

View File

@ -9,9 +9,9 @@ RF="-s"
compile() {
spp -h >/dev/null 2>&1
if [ $? = 0 ]; then
spp -Darch=${ARCH} "$@" | rarc2 $RF -a${ARCH} > .a.S || exit $?
spp -Darch=${ARCH} $* | rarc2 $RF -a${ARCH} > .a.S || exit $?
else
rarc2 $RF -a${ARCH} "$@" > .a.S || exit $?
rarc2 $RF -a${ARCH} $* > .a.S || exit $?
fi
}
@ -40,7 +40,7 @@ done
shift $((${OPTIND}-1))
if [ -n "`echo "$@"`" ]; then
if [ -n "`echo $*`" ]; then
if [ -n "$r" ]; then
RF=""
ARCH=x86
@ -48,7 +48,7 @@ if [ -n "`echo "$@"`" ]; then
elif [ -n "$n" ]; then
RF=""
fi
compile "$@"
compile $*
if [ -n "$c" ]; then
# rasm2 and rabin2
rasm2 -a x86.olly -f .a.S > .a.x

View File

@ -5,6 +5,6 @@ case "$1" in
;;
*)
[ plugins.def.cfg -nt ./plugins.cfg ] && rm -f plugins.cfg
./configure-plugins "$@"
./configure-plugins $*
;;
esac

View File

@ -12,4 +12,4 @@ if [ $RET != 0 ]; then
echo "Your compiler doesn't supports AFL"
exit 1
fi
exec sys/install.sh "$@"
exec sys/install.sh $*

View File

@ -10,4 +10,4 @@ if [ $RET != 0 ]; then
echo "Your compiler doesn't supports ASAN."
exit 1
fi
exec sys/install.sh "$@"
exec sys/install.sh $*

View File

@ -33,7 +33,7 @@ testcc() {
}
log() {
echo "$@" ; echo "$@" >> ${LOGFILE}
echo $* ; echo $* >> ${LOGFILE}
}
logchk() {

View File

@ -1,4 +1,4 @@
#!/bin/sh
D=`dirname $PWD/$0`
uncrustify -c ${D}/uncrustify.cfg "$@"
uncrustify -c ${D}/uncrustify.cfg $*
diff -ru $1 $1.uncrustify

View File

@ -24,7 +24,7 @@ fi
[ -n "${NOSUDO}" ] && SUDO=
if [ "${HARDEN}" = 1 ]; then
./sys/build-harden.sh "$@" && ${SUDO} ${MAKE} symstall
./sys/build-harden.sh $* && ${SUDO} ${MAKE} symstall
else
./sys/build.sh "$@" && ${SUDO} ${MAKE} symstall
./sys/build.sh $* && ${SUDO} ${MAKE} symstall
fi

View File

@ -60,4 +60,4 @@ LDFLAGS="-L ${IOSROOT}/usr/lib/ ${LDFLAGS}"
#fi
# arm64
${CC} ${CFLAGS} ${LDFLAGS} "$@"
${CC} ${CFLAGS} ${LDFLAGS} $*

View File

@ -1,6 +1,6 @@
#!/bin/sh
#A=`hg diff $@ | grep -v '+++' | grep ^+ |wc -l`
#B=`hg diff $@ | grep -v -- '---' | grep ^- |wc -l`
A=`git diff "$@" | grep -v '+++' | grep ^+ |wc -l`
B=`git diff "$@" | grep -v -- '---' | grep ^- |wc -l`
A=`git diff $* | grep -v '+++' | grep ^+ |wc -l`
B=`git diff $* | grep -v -- '---' | grep ^- |wc -l`
echo $((A-B))

View File

@ -91,7 +91,7 @@ esac
#LDFLAGS="${LDFLAGS} -Wl,-dynamic-linker=/system/bin/linker"
LDFLAGS="${LDFLAGS} --sysroot=${PLATFORM_ROOT}"
#if [ -z "`echo "$@"" | grep shared`" ]; then
#if [ -z "`echo $*" | grep shared`" ]; then
#LDFLAGS="${LDFLAGS} ${PLATFORM_PATH}/lib/crtbegin_dynamic.o"
#fi
CC=${NDKPFX}-gcc
@ -100,5 +100,5 @@ EXT_SO=so
export PATH=${NDK_BINS}:$PATH
export EXT_SO AR CC CFLAGS LDFLAGS PATH
# echo ${CC} ${CFLAGS} ${LDFLAGS} "$@""
${CC} ${CFLAGS} ${LDFLAGS} "$@"
# echo ${CC} ${CFLAGS} ${LDFLAGS} $*"
${CC} ${CFLAGS} ${LDFLAGS} $*