Bug 207614: fixed the way prcpucfg.h is created on OpenVMS so that its NSPRPUB_PRE_4_2_CLIENT_BRANCH CFM_LAST_RITES
authorwtc%netscape.com
Fri, 06 Jun 2003 21:30:55 +0000
branchNSPRPUB_PRE_4_2_CLIENT_BRANCH
changeset 2854 704f7885e74237d0c16199fd7fd8e4eb921c17c8
parent 2851 1460dd392f950640a861b2e341e665b8fea12dd9
child 2857 37e133fae23a2cbf24159d23089a873ab80923e1
push idunknown
push userunknown
push dateunknown
bugs207614
Bug 207614: fixed the way prcpucfg.h is created on OpenVMS so that its modified time doesn't get updated whenever we do "gmake export". Tag: NSPRPUB_PRE_4_2_CLIENT_BRANCH
pr/include/md/Makefile.in
--- a/pr/include/md/Makefile.in
+++ b/pr/include/md/Makefile.in
@@ -41,19 +41,27 @@ VPATH		= @srcdir@
 include $(MOD_DEPTH)/config/autoconf.mk
 
 HEADERS = $(wildcard $(srcdir)/*.h)
 CONFIGS = $(wildcard $(srcdir)/*.cfg)
 
 include $(topsrcdir)/config/rules.mk
 
 export:: $(MDCPUCFG_H)
+	$(INSTALL) -m 444 $(CONFIGS) $(HEADERS) $(dist_includedir)/md
 	$(INSTALL) -m 444 $(srcdir)/$(MDCPUCFG_H) $(dist_includedir)
-	$(INSTALL) -m 444 $(CONFIGS) $(HEADERS) $(dist_includedir)/md
+ifeq ($(OS_ARCH),OpenVMS)
+# On OpenVMS mv updates the file's modified time, so we create a hard link.
+	cd $(dist_includedir); \
+	if test ! -f prcpucfg.h; then \
+	    dcl set file /enter=prcpucfg.h $(MDCPUCFG_H); \
+	fi
+else
 	mv -f $(dist_includedir)/$(MDCPUCFG_H) $(dist_includedir)/prcpucfg.h
+endif
 
 real_install::
 	$(NSINSTALL) -D $(DESTDIR)$(includedir)/md
 	cp $(srcdir)/$(MDCPUCFG_H) $(DESTDIR)$(includedir)/prcpucfg.h
 	$(NSINSTALL) -t -m 644 $(HEADERS) $(DESTDIR)$(includedir)/md
 
 release:: export
 	@echo "Copying machine-dependent prcpucfg.h"