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
This commit is contained in:
mentor 2008-06-19 00:33:04 +00:00
parent f3a89f4353
commit fbfef80115
3 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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

View File

@ -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"