From: Yves Orton Date: Fri, 26 Dec 2008 14:48:03 +0000 (+0100) Subject: make git-describe info show up in -V output in the "Characteristics of this binary... X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e2ea577947ccf1574c5ddd0c8e4f3b792b45133c;p=p5sagit%2Fp5-mst-13.2.git make git-describe info show up in -V output in the "Characteristics of this binary" section. --- diff --git a/make_patchnum.sh b/make_patchnum.sh index b06a4f3..5a61637 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 da4ee48..d3e3bc9 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)