diff options
author | Yves Orton <demerphq@dromedary.booking.com> | 2008-12-26 15:48:03 +0100 |
---|---|---|
committer | Yves Orton <demerphq@dromedary.booking.com> | 2008-12-27 11:18:09 +0100 |
commit | e2ea577947ccf1574c5ddd0c8e4f3b792b45133c (patch) | |
tree | 3b33ee81f54c6f881058defa5909015e5c859a44 | |
parent | 531a2f446e4c4ff48354dfe55b2d17a7719ab97c (diff) | |
download | perl-e2ea577947ccf1574c5ddd0c8e4f3b792b45133c.tar.gz |
make git-describe info show up in -V output in the "Characteristics of this binary" section.
-rw-r--r-- | make_patchnum.sh | 2 | ||||
-rw-r--r-- | perl.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/make_patchnum.sh b/make_patchnum.sh index b06a4f3e9c..5a6163702d 100644 --- a/make_patchnum.sh +++ b/make_patchnum.sh @@ -12,7 +12,7 @@ fi if [ "$Existing" != "$Current" ]; then echo "Updating .patchnum" - echo $Current > .patchnum + echo -n $Current > .patchnum else echo "Reusing .patchnum" fi @@ -1898,7 +1898,9 @@ S_parse_body(pTHX_ char **env, XSINIT_t xsinit) #else sv_catpvs(opts_prog,"\"\\nCharacteristics of this binary (from libperl): \\n"); #endif - +#ifdef PERL_PATCHNUM + sv_catpvs(opts_prog, " Git Description: " STRINGIFY(PERL_PATCHNUM) "\\n"); +#endif sv_catpvs(opts_prog," Compile-time options: $_\\n\","); #if defined(LOCAL_PATCH_COUNT) |