mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-26 22:50:48 +00:00
Fix shellcheck problem in scripts
This commit is contained in:
parent
40de063d3f
commit
6aefa441b1
@ -8,5 +8,5 @@
|
||||
acr -p
|
||||
if [ -n "$1" ]; then
|
||||
echo "./configure $*"
|
||||
./configure "$@"
|
||||
./configure $*
|
||||
fi
|
||||
|
@ -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
|
||||
|
@ -5,6 +5,6 @@ case "$1" in
|
||||
;;
|
||||
*)
|
||||
[ plugins.def.cfg -nt ./plugins.cfg ] && rm -f plugins.cfg
|
||||
./configure-plugins "$@"
|
||||
./configure-plugins $*
|
||||
;;
|
||||
esac
|
||||
|
@ -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 $*
|
||||
|
@ -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 $*
|
||||
|
@ -33,7 +33,7 @@ testcc() {
|
||||
}
|
||||
|
||||
log() {
|
||||
echo "$@" ; echo "$@" >> ${LOGFILE}
|
||||
echo $* ; echo $* >> ${LOGFILE}
|
||||
}
|
||||
|
||||
logchk() {
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -60,4 +60,4 @@ LDFLAGS="-L ${IOSROOT}/usr/lib/ ${LDFLAGS}"
|
||||
#fi
|
||||
|
||||
# arm64
|
||||
${CC} ${CFLAGS} ${LDFLAGS} "$@"
|
||||
${CC} ${CFLAGS} ${LDFLAGS} $*
|
||||
|
@ -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))
|
||||
|
@ -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} $*
|
||||
|
Loading…
Reference in New Issue
Block a user