This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Experiment with putting the F<.patch>level into patchlevel.h
authorNicholas Clark <nick@ccl4.org>
Sat, 10 Sep 2005 17:07:04 +0000 (17:07 +0000)
committerNicholas Clark <nick@ccl4.org>
Sat, 10 Sep 2005 17:07:04 +0000 (17:07 +0000)
(a sure way to accelerate any change to subversion)

p4raw-id: //depot/perl@25374

cflags.SH
patchlevel.h

index 5a6a706..6c26025 100755 (executable)
--- a/cflags.SH
+++ b/cflags.SH
@@ -165,6 +165,10 @@ Intel*) ;;
     ;;
 esac
 
+if test -f .patch; then
+  ccflags="-DPERL_PATCHNUM=`cat .patch` $ccflags"
+fi
+
     : Can we perhaps use $ansi2knr here
     echo "$cc -c -DPERL_CORE $ccflags $optimize $warn"
     eval "$also "'"$cc -DPERL_CORE -c $ccflags $optimize $warn"'
index 86b87be..5b118cf 100644 (file)
@@ -114,13 +114,14 @@ hunk.
 
  */
 
-
-
+#ifndef PERL_PATCHNUM
+#define PERL_PATCHNUM 24148
+#endif
 
 #if !defined(PERL_PATCHLEVEL_H_IMPLICIT) && !defined(LOCAL_PATCH_COUNT)
 static const char * const local_patches[] = {
        NULL
-       ,"DEVEL24148"
+       ,"DEVEL" STRINGIFY(PERL_PATCHNUM)
        ,NULL
 };