From: Perl 5 Porters Date: Thu, 3 Oct 1996 03:27:58 +0000 (+0000) Subject: perl 5.003_06: makedepend.SH X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ae26f3f3856e9532d3b3bd5d2bc25ff6501db386;p=p5sagit%2Fp5-mst-13.2.git perl 5.003_06: makedepend.SH Add explicit $touch $firstmakefile for QNX which apparently preserves modification times for a 'cp' command. I worry, though, that touch might not be portable to OS/2. If it is, then I'll remove the fancy case statement. --- diff --git a/makedepend.SH b/makedepend.SH index 336d24c..0967253 100755 --- a/makedepend.SH +++ b/makedepend.SH @@ -56,6 +56,12 @@ $rm -f *.c.c c/*.c.c if test -f Makefile; then rm -f $firstmakefile cp Makefile $firstmakefile + # On QNX, 'cp' preserves timestamp, so $firstmakefile appears + # to be out of date. I don't know if OS/2 has touch, so do this: + case "$osname" in + os2) ;; + *) $touch $firstmakefile ;; + esac fi mf=$firstmakefile if test -f $mf; then