Skip to content

Commit

Permalink
cflags also runs under /bin/sh so can't use $()
Browse files Browse the repository at this point in the history
  • Loading branch information
nwc10 committed Dec 31, 2008
1 parent a2837a9 commit 5f58995
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cflags.SH
Original file line number Diff line number Diff line change
Expand Up @@ -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) ;;
Expand Down

0 comments on commit 5f58995

Please sign in to comment.