makedir.SH Precursor to makedir
Makefile.micro microperl Makefile
Makefile.SH A script that generates Makefile
+make_patchnum.com DCL script to generate .patchnum file on VMS
make_patchnum.sh Script to generate .patchnum file
malloc.c A version of malloc you might not want
malloc_ctl.h A version of malloc you might not want
$ OPEN/READ PATCH [-].patch
$ READ PATCH line
$ CLOSE PATCH
-$ tmp = F$EDIT(line,"COLLAPSE")
+$ tmp = F$EDIT(line,"TRIM,COMPRESS")
+$ IF F$ELEMENT(3, " ", tmp) .NES. "" THEN tmp = F$ELEMENT(3, " ", tmp)
$ SET ON
-$ IF tmp .GT. perl_patchlevel then perl_patchlevel = tmp
+$ IF tmp .NES. "" THEN perl_patchlevel = tmp
$ ENDIF
$!
$ version_patchlevel_string = "version ''patchlevel' subversion ''subversion'"
--- /dev/null
+$! MAKE_PATCHNUM.COM
+$!
+$ open/read pf .patch
+$ read pf line_in
+$ close pf
+$ line_in = f$edit(line_in, "TRIM,COMPRESS")
+$ branch = f$element(0, " ", line_in)
+$ snapshot_created = f$element(1, " ", line_in)
+$ commit_id = f$element(2, " ", line_in)
+$ describe = f$element(3, " ", line_in)
+$!
+$ changed=""
+$ extra_info="git_snapshot_date='" + snapshot_created + "'"
+$ commit_title="Snapshot of:"
+$!
+$ write sys$output "Updating .patchnum and lib/Config_git.pl"
+$!
+$ create .patchnum
+$ open/append pn .patchnum
+$ write pn "describe: ''describe'"
+$ close pn
+$!
+$ create unpushed.h
+$ open/append unp unpushed.h
+$ write unp "/**********************************************************************"
+$ write unp "* WARNING: unpushed.h is automatically generated by make_patchnum.com *"
+$ write unp "* DO NOT EDIT DIRECTLY - edit make_patchnum.com instead *"
+$ write unp "**********************************************************************/"
+$ write unp "#define PERL_GIT_UNPUSHED_COMMITS /*no-op*/"
+$ write unp "/*leave-this-comment*/"
+$ close unp
+$!
+$ create [.lib]Config_git.pl
+$ open/append cfg [.lib]Config_git.pl
+$ write cfg "##################################################################"
+$ write cfg "# WARNING: lib/Config_git.pl is generated by make_patchnum.com #"
+$ write cfg "# DO NOT EDIT DIRECTLY - edit make_patchnum.com instead #"
+$ write cfg "##################################################################"
+$ write cfg "$Config::Git_Data=<<'ENDOFGIT';"
+$ write cfg "git_commit_id='" + commit_id + "'"
+$ write cfg "git_describe='" + describe + "'"
+$ write cfg "git_branch='" + branch + "'"
+$ write cfg "git_uncommitted_changes='" + changed + "'"
+$ write cfg "git_commit_id_title='" + commit_title + "'"
+$ write cfg "''extra_info'"
+$ write cfg "ENDOFGIT"
+$ close cfg
+$ exit
utils5 = [.utils]corelist.com [.utils]config_data.com [.utils]cpanp.com [.utils]cpan2dist.com [.utils]cpanp-run-perl.com
.ifdef NOX2P
-all : base extras archcorefiles preplibrary perlpods
+all : make_patchnum.ts base extras archcorefiles preplibrary perlpods
@ QUALIFIERS := $(MMSQUALIFIERS)
@ QUALIFIERS = QUALIFIERS - """" - """"
@ write sys$output " "
@ write sys$output " Everything is up to date. '$(MMS)''QUALIFIERS' test' to run test suite."
.else
-all : base extras x2p archcorefiles preplibrary perlpods
+all : make_patchnum.ts base extras x2p archcorefiles preplibrary perlpods
@ QUALIFIERS := $(MMSQUALIFIERS)
@ QUALIFIERS = QUALIFIERS - """" - """"
@ write sys$output " "
@ write sys$output " Everything is up to date. '$(MMS)''QUALIFIERS' test' to run test suite."
.endif
+
+make_patchnum.ts :
+ @ @make_patchnum.com
+ @ Copy/NoConfirm _NLA0: $(MMS$TARGET)
+
base : miniperl perl
@ $(NOOP)
extras : dynext libmods utils podxform extra.pods
- If F$Search("[.pod]*.com").nes."" Then Delete/NoConfirm/Log [.pod]*.com;*
- If F$Search("[.pod]perldelta.pod").nes."" Then Delete/NoConfirm/Log [.pod]perldelta.pod;*
- @extra_pods CLEAN
+ - If F$Search(".patchnum").nes."" Then Delete/NoConfirm/Log .patchnum;*
+ - If F$Search("[.lib]Config_git.pl").nes."" Then Delete/NoConfirm/Log [.lib]Config_git.pl;*
+ - If F$Search("unpushed.h").nes."" Then Delete/NoConfirm/Log unpushed.h;*
realclean : clean
- @make_ext "$(MINIPERL_EXE)" "$(MMS)" realclean