forgot that i was modifying a generated file
authorYves Orton <demerphq@dromedary.booking.com>
Fri, 26 Dec 2008 16:26:44 +0000 (17:26 +0100)
committerDavid Mitchell <davem@iabyn.com>
Thu, 26 Feb 2009 01:57:28 +0000 (01:57 +0000)
(cherry picked from commit 1e05a8c5095cffcf5e53936eac6f045621a8d60c)

cflags.SH

index 8a4008b..6e6e8a9 100755 (executable)
--- a/cflags.SH
+++ b/cflags.SH
@@ -300,6 +300,9 @@ for file do
         if [ -f .patchnum -a -n "$(cat .patchnum)" ] ; then
                 ccflags="-DPERL_PATCHNUM=`cat .patchnum` $ccflags"
         fi
+        if [ -f .sha1 -a -n "$(cat .sha1)" ] ; then
+                ccflags="-DPERL_GIT_SHA1=`cat .sha1` $ccflags"
+        fi
         ;;
     perlapi) ;;
     perlmain) ;;