diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-12-30 23:30:24 -0800 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-12-30 23:30:24 -0800 |
commit | 5f589954180c59496f647c8523dcd3df0d8e579b (patch) | |
tree | 24d2acad25e3b0e0aff75ca3db58a6460cf8f05b /cflags.SH | |
parent | a2837a9e92f4ea37fd2681a70558d242250a5a34 (diff) | |
download | perl-5f589954180c59496f647c8523dcd3df0d8e579b.tar.gz |
cflags also runs under /bin/sh so can't use $()
Diffstat (limited to 'cflags.SH')
-rwxr-xr-x | cflags.SH | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) ;; |