diff options
author | Yves Orton <demerphq@dromedary.booking.com> | 2008-12-21 16:34:56 +0100 |
---|---|---|
committer | Yves Orton <demerphq@dromedary.booking.com> | 2008-12-27 11:18:08 +0100 |
commit | 8565263ab8a47cda76538c0286536f59c53e155f (patch) | |
tree | 2469fe3585779259f05b8cf2522161bc39b2107f /cflags.SH | |
parent | 6a71721dfccd239c818c4403e1d0f62568633088 (diff) | |
download | perl-8565263ab8a47cda76538c0286536f59c53e155f.tar.gz |
make sure that the perl -v/-V output corresponds to the latest commit
Diffstat (limited to 'cflags.SH')
-rwxr-xr-x | cflags.SH | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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 |