diff options
author | Simon Cozens <simon@netthink.co.uk> | 2000-07-14 07:12:15 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-02 01:43:33 +0000 |
commit | 517e7c645afd88cb6b76e340708d0fff8202d858 (patch) | |
tree | 878057c1242990ad48a7bdfd220a51784f5cac13 /Makefile.SH | |
parent | 298e5f695df9e9b8ba9d8ecad678734c47cd6d78 (diff) | |
download | perl-517e7c645afd88cb6b76e340708d0fff8202d858.tar.gz |
"This little thing tests for a file .patch, and if it contains
a number, pops into patchlevel.h" (making it easier to track
which development version people are reporting bugs against)
Subject: Patchlevel autogeneration for repository perls
Message-ID: <slrn8mtfaf.1qo.simon@justanother.perlhacker.org>
p4raw-id: //depot/perl@6485
Diffstat (limited to 'Makefile.SH')
-rw-r--r-- | Makefile.SH | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile.SH b/Makefile.SH index c6916143c3..22f8071f0d 100644 --- a/Makefile.SH +++ b/Makefile.SH @@ -307,7 +307,7 @@ opmini$(OBJ_EXT): op.c $(CCCMD) $(PLDLFLAGS) -DPERL_EXTERNAL_GLOB opmini.c $(RMS) opmini.c -miniperlmain$(OBJ_EXT): miniperlmain.c +miniperlmain$(OBJ_EXT): miniperlmain.c patchlevel.h $(CCCMD) $(PLDLFLAGS) $*.c perlmain.c: miniperlmain.c config.sh $(FIRSTMAKEFILE) @@ -325,6 +325,14 @@ ext.libs: $(static_ext) !NO!SUBS! +if test -f .patch ; then $spitshell >>Makefile <<'!NO!SUBS!' +patchlevel.h: .patch + perl fix_pl || (make -f Makefile.micro && ./microperl fix_pl) + +!NO!SUBS! + +fi + # How to build libperl. This is still rather convoluted. # Load up custom Makefile.SH fragment for shared loading and executables: case "$osname" in |