diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-09-10 17:07:04 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-09-10 17:07:04 +0000 |
commit | 69c7f29429723a0fefb4c8c01f5406c96beb31dc (patch) | |
tree | b9623b5ae30b198ee2fef986b38d2022860f5b75 | |
parent | df805c3ec4f4a47f66c26574a4bd6585a96b1afe (diff) | |
download | perl-69c7f29429723a0fefb4c8c01f5406c96beb31dc.tar.gz |
Experiment with putting the F<.patch>level into patchlevel.h
(a sure way to accelerate any change to subversion)
p4raw-id: //depot/perl@25374
-rwxr-xr-x | cflags.SH | 4 | ||||
-rw-r--r-- | patchlevel.h | 7 |
2 files changed, 8 insertions, 3 deletions
@@ -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 86b87be4f4..5b118cf3af 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 }; |