From: Yves Orton Date: Sun, 4 Jan 2009 18:12:53 +0000 (+0100) Subject: this seems to work, still not using the perl version, but this works the way it would X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=12d7e04de30e7bc6b13a6f47e4ed1a1365267e6c;hp=e9be352a567fab443a8c229b10a5050c9cf2d4cf;p=p5sagit%2Fp5-mst-13.2.git this seems to work, still not using the perl version, but this works the way it would --- diff --git a/Makefile.SH b/Makefile.SH index 9bf115c..c6bebe0 100644 --- a/Makefile.SH +++ b/Makefile.SH @@ -541,7 +541,8 @@ sperl.i: perl.c $(h) .PHONY: all translators utilities make_patchnum make_patchnum: - sh $(shellflags) make_patchnum.sh + sh $(shellflags) make_patchnum.sh || $(MAKE) miniperl + git_version.h: stock_git_version.h cp stock_git_version.h git_version.h @@ -594,7 +595,7 @@ miniperlmain$(OBJ_EXT): miniperlmain.c patchlevel.h perlmain.c: miniperlmain.c config.sh $(FIRSTMAKEFILE) sh writemain $(DYNALOADER) $(static_ext) > perlmain.c -perlmain$(OBJ_EXT): perlmain.c +perlmain$(OBJ_EXT): perlmain.c git_version.h $(CCCMD) $(PLDLFLAGS) $*.c # The file ext.libs is a list of libraries that must be linked in diff --git a/configpm b/configpm index af6f65a..17f02c5 100755 --- a/configpm +++ b/configpm @@ -548,8 +548,11 @@ foreach my $prefix (qw(libs libswanted)) { $heavy_txt .= "EOVIRTUAL\n"; $heavy_txt .= <<'ENDOFGIT'; -require 'Config_git.pl'; -$Config_SH_expanded .= $Config::Git_Data; +eval { + # do not have hairy conniptions if this isnt available + require 'Config_git.pl'; + $Config_SH_expanded .= $Config::Git_Data; +}; ENDOFGIT $heavy_txt .= $fetch_string; diff --git a/make_patchnum.sh b/make_patchnum.sh index e770f75..6c3ae65 100644 --- a/make_patchnum.sh +++ b/make_patchnum.sh @@ -69,19 +69,19 @@ test -z "$commit_title" && commit_title='Commit id:' new_header=`cat < $config_file echo "$new_header" > $header_file + exit 1 else echo "Reusing $header_file and $config_file" fi