Bug 207614: fixed the way prcpucfg.h is created on OpenVMS so that its
authorwtc%netscape.com
Fri, 06 Jun 2003 21:21:47 +0000
changeset 2853 ac99823dd9d0e0db9704e23eb7fb585021bca654
parent 2852 35dc50e447a75737a6809ec9691366fb77ba6465
child 2858 a7491801c61c3f4e34e30c0d8ec29bfb29e307ec
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".
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"