This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl 5.003_06: makedepend.SH
authorPerl 5 Porters <perl5-porters@africa.nicoh.com>
Thu, 3 Oct 1996 03:27:58 +0000 (03:27 +0000)
committerAndy Dougherty <doughera@lafcol.lafayette.edu>
Thu, 3 Oct 1996 03:27:58 +0000 (03:27 +0000)
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.

makedepend.SH

index 336d24c..0967253 100755 (executable)
@@ -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