From e9be352a567fab443a8c229b10a5050c9cf2d4cf Mon Sep 17 00:00:00 2001 From: Yves Orton Date: Sun, 4 Jan 2009 17:39:25 +0100 Subject: doesnt quite work yet, but provisional steps towards using miniperl to do the git stuff --- MANIFEST | 1 + Makefile.SH | 6 +++--- make_patchnum.sh | 2 +- stock_git_version.h | 7 +++++++ 4 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 stock_git_version.h diff --git a/MANIFEST b/MANIFEST index 2faee4fcfa..3a0fae4281 100644 --- 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 diff --git a/Makefile.SH b/Makefile.SH index ad04fe5350..9bf115c661 100644 --- a/Makefile.SH +++ b/Makefile.SH @@ -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 diff --git a/make_patchnum.sh b/make_patchnum.sh index 9a8982fd97..e770f75e86 100644 --- a/make_patchnum.sh +++ b/make_patchnum.sh @@ -74,7 +74,7 @@ new_header=`cat <