From: Nicholas Clark Date: Sat, 10 Sep 2005 17:07:04 +0000 (+0000) Subject: Experiment with putting the F<.patch>level into patchlevel.h X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=69c7f29429723a0fefb4c8c01f5406c96beb31dc;p=p5sagit%2Fp5-mst-13.2.git Experiment with putting the F<.patch>level into patchlevel.h (a sure way to accelerate any change to subversion) p4raw-id: //depot/perl@25374 --- diff --git a/cflags.SH b/cflags.SH index 5a6a706..6c26025 100755 --- 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"' diff --git a/patchlevel.h b/patchlevel.h index 86b87be..5b118cf 100644 --- a/patchlevel.h +++ b/patchlevel.h @@ -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 };