diff options
author | Perl 5 Porters <perl5-porters@africa.nicoh.com> | 1996-10-03 03:27:58 +0000 |
---|---|---|
committer | Andy Dougherty <doughera@lafcol.lafayette.edu> | 1996-10-03 03:27:58 +0000 |
commit | ae26f3f3856e9532d3b3bd5d2bc25ff6501db386 (patch) | |
tree | 9dac179faf1aa8650a1ef425c08e1eeddf8b3c71 /makedepend.SH | |
parent | b9b857e22d653acb949069d66ea7b0b68d10024d (diff) | |
download | perl-ae26f3f3856e9532d3b3bd5d2bc25ff6501db386.tar.gz |
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.
Diffstat (limited to 'makedepend.SH')
-rwxr-xr-x | makedepend.SH | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/makedepend.SH b/makedepend.SH index 336d24cdbd..09672538d2 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 |