make git-describe info show up in -V output in the "Characteristics of this binary...
Yves Orton [Fri, 26 Dec 2008 14:48:03 +0000 (15:48 +0100)]
make_patchnum.sh
perl.c

index b06a4f3..5a61637 100644 (file)
@@ -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 (file)
--- 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)