Use NSINSTALL instead of symbolic links so crypto works on NT builds as well.
authorrelyea%netscape.com
Mon, 03 Apr 2000 22:28:49 +0000
changeset 221 9291b88c8ee8dbc20ac506b765fdeb6dcf6689ac
parent 220 3a4763d5d715e44091590ae5e28fb829daadc8b0
child 222 8db9397e52058664c798fc0dda4a82888bb20a77
push idunknown
push userunknown
push dateunknown
Use NSINSTALL instead of symbolic links so crypto works on NT builds as well.
security/nss/lib/Makefile
--- a/security/nss/lib/Makefile
+++ b/security/nss/lib/Makefile
@@ -67,22 +67,21 @@ include $(CORE_DEPTH)/coreconf/rules.mk
 #######################################################################
 
 
 
 #######################################################################
 # (7) Execute "local" rules. (OPTIONAL).                              #
 #######################################################################
 
+FILES=$(shell ls $(CORE_DEPTH)/../../ns/security/lib/crypto/*)
 
 export::
 ifdef MOZILLA_SECURITY_BUILD
-	rm -f crypto
-	ln -s $(CORE_DEPTH)/../../ns/security/lib/crypto
-	(cd crypto && gmake export)
-#
-# cmd expects to live in $(COREDEP)/security/cmd, and now it lives in 
-# $(CORE_DEPTH)/nss/cmd. put the link in so it builds until we can fix the makefiles
-# over move to mozilla
-#
-	rm -f $(CORE_DEPTH)/security
-	(cd $(CORE_DEPTH) ; ln -s nss security)
+	if test -d $(CORE_DEPTH)/../../ns/security/lib/crypto; then \
+	   $(NSINSTALL) -D crypto; \
+	   for file in $(FILES) ; do \
+		if test -f $$file; then \
+   		    $(NSINSTALL) -m 444 $$file crypto; \
+		fi; \
+	   done;  \
+	fi
 endif