summaryrefslogtreecommitdiff
path: root/cflags.SH
diff options
context:
space:
mode:
authorYves Orton <demerphq@dromedary.booking.com>2008-12-21 16:34:56 +0100
committerYves Orton <demerphq@dromedary.booking.com>2008-12-27 11:18:08 +0100
commit8565263ab8a47cda76538c0286536f59c53e155f (patch)
tree2469fe3585779259f05b8cf2522161bc39b2107f /cflags.SH
parent6a71721dfccd239c818c4403e1d0f62568633088 (diff)
downloadperl-8565263ab8a47cda76538c0286536f59c53e155f.tar.gz
make sure that the perl -v/-V output corresponds to the latest commit
Diffstat (limited to 'cflags.SH')
-rwxr-xr-xcflags.SH8
1 files changed, 2 insertions, 6 deletions
diff --git a/cflags.SH b/cflags.SH
index 9e0494e671..b11966b831 100755
--- a/cflags.SH
+++ b/cflags.SH
@@ -354,12 +354,8 @@ case "$cc" in
;;
esac
-if test -d .git; then
- ccflags="-DPERL_PATCHNUM=`git describe` $ccflags"
-else
- if test -f .patch; then
- ccflags="-DPERL_PATCHNUM=`awk '{print $4}' .patch` $ccflags"
- fi
+if [ -f .patchnum -a -n "$(cat .patchnum)"]; then
+ ccflags="-DPERL_PATCHNUM=`cat .patchnum`"
fi
: Can we perhaps use $ansi2knr here