From: mentor Date: Thu, 19 Jun 2008 00:33:04 +0000 (+0000) Subject: Use POSIX preferred (and easier to read) $() form rather than `` X-Git-Url: http://git.ozo.com/?p=madwifi%2F.git;a=commitdiff_plain;h=fbfef801157512d7e5c127214bc586a49b53d51b Use POSIX preferred (and easier to read) $() form rather than `` git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3732 0192ed92-7a03-0410-a25b-9323aeb14dbd --- diff --git a/ath_hal/Makefile b/ath_hal/Makefile index 0f2dd52..d2722c0 100644 --- a/ath_hal/Makefile +++ b/ath_hal/Makefile @@ -88,7 +88,7 @@ endif # Replace as many hashed names as possible with meaningful # ones in the symbol table of the binary kernel module for HAL. $(filter-out -O binary -S,$(OBJCOPY)) \ - `cat $(TOP)/scripts/hal_unmangle.objcopy` \ + $$(cat $(TOP)/scripts/hal_unmangle.objcopy) \ $(obj)/$(TARGET).hal.o .PHONY: install diff --git a/patch-kernel/install.sh b/patch-kernel/install.sh index c87262b..e343b1c 100755 --- a/patch-kernel/install.sh +++ b/patch-kernel/install.sh @@ -14,7 +14,7 @@ die() } SRC=.. -KERNEL_VERSION=`uname -r` +KERNEL_VERSION=$(uname -r) if test -n "$1"; then KERNEL_PATH="$1" @@ -74,19 +74,19 @@ cp -f ${SRC}/BuildCaps.inc ${SRC}/svnversion.h ${SRC}/release.h ${MADWIFI} echo "Copying source files" -FILES=`cd ${SRC} && find ath ath_hal ath_rate hal include net80211 -name '*.[ch]'` +FILES=$(cd ${SRC} && find ath ath_hal ath_rate hal include net80211 -name '*.[ch]') for f in $FILES; do case $f in *.mod.c) continue;; esac - mkdir -p `dirname ${MADWIFI}/$f` + mkdir -p $(dirname ${MADWIFI}/$f) cp -f ${SRC}/$f ${MADWIFI}/$f done echo "Copying makefiles" -FILES=`cd ${SRC} && find . -name Makefile.kernel` +FILES=$(cd ${SRC} && find . -name Makefile.kernel) for f in $FILES; do - cp -f ${SRC}/$f `dirname ${MADWIFI}/$f`/Makefile + cp -f ${SRC}/$f $(dirname ${MADWIFI}/$f)/Makefile done cp -f ${SRC}/ath_hal/ah_target.inc ${MADWIFI}/ath_hal diff --git a/scripts/madwifi-unload b/scripts/madwifi-unload index 5f033bf..4dbee95 100755 --- a/scripts/madwifi-unload +++ b/scripts/madwifi-unload @@ -3,7 +3,7 @@ : ${PATTERN='\(ath_.*\|wlan_.*\|wlan\)$'} : ${MAX_TRIES=10} -test "`id -u`" = 0 || { +test "$(id -u)" = 0 || { echo "ERROR: You must be root to run this script" >&2 exit 1 } @@ -18,7 +18,7 @@ while test "$tries" != "0"; do skipped=0 IFS=' ' - for line in `cat /proc/modules`; do + for line in $(cat /proc/modules); do IFS=' ' set x $line name="$2"