doesnt quite work yet, but provisional steps towards using miniperl to do the git...
Yves Orton [Sun, 4 Jan 2009 16:39:25 +0000 (17:39 +0100)]
MANIFEST
Makefile.SH
make_patchnum.sh
stock_git_version.h [new file with mode: 0644]

index 2faee4f..3a0fae4 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -3617,6 +3617,7 @@ regnodes.h                        Description of nodes of RE engine
 run.c                          The interpreter loop
 scope.c                                Scope entry and exit code
 scope.h                                Scope entry and exit header
+stock_git_version.h            Empty git_version.h used when there is no miniperl around
 sv.c                           Scalar value code
 sv.h                           Scalar value header
 symbian/bld.inf                        Symbian sample app build config
index ad04fe5..9bf115c 100644 (file)
@@ -525,7 +525,7 @@ splintfiles = $(c1)
 .c.s:
        $(CCCMDSRC) -S $*.c
 
-all: $(FIRSTMAKEFILE) make_patchnum miniperl$(EXE_EXT) miniperl extra.pods $(private) $(unidatafiles) $(public) $(dynamic_ext) $(nonxs_ext) extras.make
+all: $(FIRSTMAKEFILE) miniperl$(EXE_EXT) miniperl make_patchnum extra.pods $(private) $(unidatafiles) $(public) $(dynamic_ext) $(nonxs_ext) extras.make
        @echo " ";
        @echo " Everything is up to date. Type '$(MAKE) test' to run test suite."
 
@@ -543,8 +543,8 @@ sperl.i: perl.c $(h)
 make_patchnum:
        sh $(shellflags) make_patchnum.sh
 
-git_version.h:
-       sh $(shellflags) make_patchnum.sh
+git_version.h: stock_git_version.h
+       cp stock_git_version.h git_version.h
 
 # make sure that we recompile perl.c if the git version changes
 perl$(OBJ_EXT): git_version.h
index 9a8982f..e770f75 100644 (file)
@@ -74,7 +74,7 @@ new_header=`cat <<EOFTEXT
 ****************************************************************************/
 #define PERL_PATCHNUM $describe
 $status
-#define PERL_GIT_UNPUSHED_COMMITS       $unpushed_commits
+#define PERL_GIT_UNPUSHED_COMMITS $unpushed_commits 
 /*leave-this-comment*/
 EOFTEXT
 `
diff --git a/stock_git_version.h b/stock_git_version.h
new file mode 100644 (file)
index 0000000..8eedbe0
--- /dev/null
@@ -0,0 +1,7 @@
+/***************************************************************************
+* WARNING: git_version.h is automatically generated by make_patchnum.sh 
+*          DO NOT EDIT DIRECTLY - edit make_patchnum.sh instead      
+****************************************************************************/
+#define PERL_PATCHNUM UNKOWN
+#define PERL_GIT_UNCOMMITTED_CHANGES UNKNOWN
+#define PERL_GIT_UNPUSHED_COMMITS /*leave-this-comment*/