From: Nicholas Clark Date: Wed, 31 Dec 2008 07:30:24 +0000 (-0800) Subject: cflags also runs under /bin/sh so can't use $() X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5f589954180c59496f647c8523dcd3df0d8e579b;p=p5sagit%2Fp5-mst-13.2.git cflags also runs under /bin/sh so can't use $() --- diff --git a/cflags.SH b/cflags.SH index 132f466..80b50b1 100755 --- a/cflags.SH +++ b/cflags.SH @@ -297,11 +297,11 @@ for file do opmini) ;; pad) ;; perl) - if [ -f .patchnum -a -n "$(awk 'BEGIN{ORS=""} /describe:/ {print $1}' .patchnum)" ] ; then - ccflags="-DPERL_PATCHNUM=$(awk 'BEGIN{ORS=""} /describe:/ {print $2}' .patchnum) $ccflags" + if [ -f .patchnum -a -n "`awk 'BEGIN{ORS=""} /describe:/ {print $1}' .patchnum`" ] ; then + ccflags="-DPERL_PATCHNUM=`awk 'BEGIN{ORS=""} /describe:/ {print $2}' .patchnum` $ccflags" fi - if [ -f .patchnum -a -n "$(awk 'BEGIN{ORS=""} /status:/ {print $2}' .patchnum)" ] ; then - ccflags="-DPERL_GIT_UNCOMMITTED_CHANGES=$(awk 'BEGIN{ORS=""} /status:/ {print $2}' .patchnum) $ccflags" + if [ -f .patchnum -a -n "`awk 'BEGIN{ORS=""} /status:/ {print $2}' .patchnum`" ] ; then + ccflags="-DPERL_GIT_UNCOMMITTED_CHANGES=`awk 'BEGIN{ORS=""} /status:/ {print $2}' .patchnum` $ccflags" fi ;; perlapi) ;;