diff options
author | Gisle Aas <gisle@aas.no> | 2010-03-02 20:42:39 +0100 |
---|---|---|
committer | Gisle Aas <gisle@aas.no> | 2010-03-07 16:47:26 +0100 |
commit | 691ce773f92d2810db171a8ff46c3dd0196abfb5 (patch) | |
tree | 82203c045eda994772e2a6ecf98689887b42dfc0 /patchlevel.h | |
parent | bfc37ff708b737d2490a23505b932c94f1898073 (diff) | |
download | perl-691ce773f92d2810db171a8ff46c3dd0196abfb5.tar.gz |
Only define PERL_PATCHNUM when either git or the .patch file is available
This patch also make PERL_GIT_UNCOMMITTED_CHANGES useful and thus avoids
always adding the "*" to the 'perl -v' output.
Diffstat (limited to 'patchlevel.h')
-rw-r--r-- | patchlevel.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/patchlevel.h b/patchlevel.h index 1d4a98bab9..31eedf0644 100644 --- a/patchlevel.h +++ b/patchlevel.h @@ -118,19 +118,19 @@ hunk. #if !defined(PERL_PATCHLEVEL_H_IMPLICIT) && !defined(LOCAL_PATCH_COUNT) # if defined(PERL_IS_MINIPERL) # define PERL_PATCHNUM "UNKNOWN-miniperl" -# define PERL_GIT_UNCOMMITTED_CHANGES ,"UNKNOWN" # define PERL_GIT_UNPUSHED_COMMITS /*leave-this-comment*/ # elif defined(PERL_MICRO) # define PERL_PATCHNUM "UNKNOWN-microperl" -# define PERL_GIT_UNCOMMITTED_CHANGES ,"UNKNOWN" # define PERL_GIT_UNPUSHED_COMMITS /*leave-this-comment*/ # else #include "git_version.h" # endif static const char * const local_patches[] = { NULL +#ifdef PERL_GIT_UNCOMMITTED_CHANGES + ,"uncommitted-changes" +#endif PERL_GIT_UNPUSHED_COMMITS /* do not remove this line */ - PERL_GIT_UNCOMMITTED_CHANGES /* do not remove this line */ ,NULL }; |