diff options
author | Eric Hameleers <alien@slackware.com> | 2008-05-08 07:51:04 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2008-05-08 07:51:04 +0000 |
commit | 8f96054c182cee2958a2af698887689fb50a8bf6 (patch) | |
tree | ed9c9f060ddaa302d75bdcd490a0aa0a9541c6f1 /wxGTK | |
parent | 83aa44e6f6667979bffcbcdbaedd1af87d03855d (diff) | |
download | asb-8f96054c182cee2958a2af698887689fb50a8bf6.tar.gz asb-8f96054c182cee2958a2af698887689fb50a8bf6.tar.xz |
Change several `` to $()
Diffstat (limited to 'wxGTK')
-rwxr-xr-x | wxGTK/build/wxGTK.SlackBuild | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/wxGTK/build/wxGTK.SlackBuild b/wxGTK/build/wxGTK.SlackBuild index a6d790f3..a51338c2 100755 --- a/wxGTK/build/wxGTK.SlackBuild +++ b/wxGTK/build/wxGTK.SlackBuild @@ -86,7 +86,7 @@ set -u P1=${1:-1} # Slackware 11 and up need other option (gcc > 3.3.x) -if [ `gcc -dumpversion | tr -d '.' |cut -c 1-2` -gt 33 ]; then +if [ $(gcc -dumpversion | tr -d '.' |cut -c 1-2) -gt 33 ]; then MOPT=tune else MOPT=cpu @@ -124,17 +124,17 @@ mkdir -p $OUTPUT # place for the package to be saved if ! [ -f ${SOURCE} ]; then if ! [ "x${SRCURL}" == "x" ]; then # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/`basename $SOURCE`" - echo "Source '`basename ${SOURCE}`' not available yet..." - echo "Will download file to `dirname $SOURCE`" + [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" + echo "Source '$(basename ${SOURCE})' not available yet..." + echo "Will download file to $(dirname $SOURCE)" wget -nv -T 30 -O "${SOURCE}" "${SRCURL}" || true if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '`basename ${SOURCE}`' failed... aborting the build." + echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." mv -f "${SOURCE}" "${SOURCE}".FAIL exit 1 fi else - echo "File '`basename ${SOURCE}`' not available... aborting the build." + echo "File '$(basename ${SOURCE})' not available... aborting the build." exit 1 fi fi @@ -153,9 +153,9 @@ echo "++" cd $TMP/tmp-$PRGNAM echo "Extracting the source archive(s) for $PRGNAM..." -if `file ${SOURCE} | grep -q ": bzip2"`; then +if $(file ${SOURCE} | grep -q ": bzip2"); then tar -xjvf ${SOURCE} -elif `file ${SOURCE} | grep -q ": gzip"`; then +elif $(file ${SOURCE} | grep -q ": gzip"); then tar -xzvf ${SOURCE} fi cd ${PRGNAM}-${VERSION} @@ -215,7 +215,7 @@ find $PKG/usr/doc -type f -exec chmod 644 {} \; # Compress the man page(s): if [ -d $PKG/usr/man ]; then find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \; - for i in `find $PKG/usr/man -type l -name "*.?"` ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + for i in $(find $PKG/usr/man -type l -name "*.?") ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done fi # Compress info pages and remove the package's dir file: |