summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYves Orton <demerphq@dromedary.booking.com>2008-12-26 15:48:03 +0100
committerYves Orton <demerphq@dromedary.booking.com>2008-12-27 11:18:09 +0100
commite2ea577947ccf1574c5ddd0c8e4f3b792b45133c (patch)
tree3b33ee81f54c6f881058defa5909015e5c859a44
parent531a2f446e4c4ff48354dfe55b2d17a7719ab97c (diff)
downloadperl-e2ea577947ccf1574c5ddd0c8e4f3b792b45133c.tar.gz
make git-describe info show up in -V output in the "Characteristics of this binary" section.
-rw-r--r--make_patchnum.sh2
-rw-r--r--perl.c4
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
diff --git a/perl.c b/perl.c
index da4ee48a70..d3e3bc9e6e 100644
--- a/perl.c
+++ b/perl.c
@@ -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)