summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%google.com <devnull@localhost>2008-02-21 02:52:48 +0000
committerwtc%google.com <devnull@localhost>2008-02-21 02:52:48 +0000
commita2cafaa412b153d8dcc90a392ad27adaf91f8500 (patch)
tree6379748dde4c52b6d6151670c6e63bc316a219b7
parent7e3925b80873c4efdaee18b3730132c59143d9fc (diff)
downloadnspr-hg-a2cafaa412b153d8dcc90a392ad27adaf91f8500.tar.gz
Bug 416571: use $(NSINSTALL) -t instead of cp to install prcpucfg.h to
avoid updating the last modified time of the installed file. The patch is contributed by jag (Peter Annema) <jag@tty.nl>. r=wtc.
-rw-r--r--pr/include/md/Makefile.in11
1 files changed, 10 insertions, 1 deletions
diff --git a/pr/include/md/Makefile.in b/pr/include/md/Makefile.in
index 41e31180..24a0a9b8 100644
--- a/pr/include/md/Makefile.in
+++ b/pr/include/md/Makefile.in
@@ -65,8 +65,17 @@ endif
install::
$(NSINSTALL) -D $(DESTDIR)$(includedir)/md
- cp $(srcdir)/$(MDCPUCFG_H) $(DESTDIR)$(includedir)/prcpucfg.h
$(NSINSTALL) -t -m 644 $(CONFIGS) $(DESTDIR)$(includedir)/md
+ $(NSINSTALL) -t -m 644 $(srcdir)/$(MDCPUCFG_H) $(DESTDIR)$(includedir)
+ifeq ($(OS_ARCH),OpenVMS)
+# On OpenVMS mv updates the file's modified time, so we create a hard link.
+ cd $(DESTDIR)$(includedir); \
+ if test ! -f prcpucfg.h; then \
+ dcl set file /enter=prcpucfg.h $(MDCPUCFG_H); \
+ fi
+else
+ mv -f $(DESTDIR)$(includedir)/$(MDCPUCFG_H) $(DESTDIR)$(includedir)/prcpucfg.h
+endif
release:: export
@echo "Copying machine-dependent prcpucfg.h"