Commit in LCDetectors on MAIN
Makefile+8-51.11 -> 1.12
JM: Remove old detector zip before copy.  Set correct permissions and group.

LCDetectors
Makefile 1.11 -> 1.12
diff -u -r1.11 -r1.12
--- Makefile	17 Sep 2006 00:25:09 -0000	1.11
+++ Makefile	26 Sep 2006 17:34:58 -0000	1.12
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.11 2006/09/17 00:25:09 jeremy Exp $
+# $Id: Makefile,v 1.12 2006/09/26 17:34:58 jeremy Exp $
 
 #
 # Makefile using GeomConverter and shell tools to
@@ -6,11 +6,11 @@
 # and create zips.
 #
 # Execute the help target to see available targets:
-# 
+#
 #   make help
 #
-# Only users with access to SLAC NFS will be able 
-# to update the master detector repository 
+# Only users with access to SLAC NFS will be able
+# to update the master detector repository
 # at www.lcsim.org/detectors
 #
 
@@ -63,7 +63,7 @@
 	echo "MISCELLANEOUS"; \
 	echo "taglist        - create detectors/taglist.txt"; \
 	echo "taglist_commit - commit detectors/taglist.txt to CVS"; \
-	echo "cvs_update     - update from LCDetectors CVS";
+	echo "cvs_update     - update from LCDetectors CVS"; \
 	echo ; \
 	echo "Questions or bugs to <[log in to unmask]>";
 
@@ -141,7 +141,10 @@
 		if [[ $$chk_local != $$chk_www ]]; then \
 			echo "Detector $(DETECTOR) needs update ..."; \
 			echo "Copying detectors/$(DETECTOR).zip to $(PRJ_WWW)/detectors ..."; \
+            rm $(PRJ_WWW)/detectors/$(DETECTOR).zip; \
 			cp detectors/$(DETECTOR).zip $(PRJ_WWW)/detectors; \
+			chmod 775 $(PRJ_WWW)/detectors/$(DETECTOR).zip; \
+			chgrp lcddata $(PRJ_WWW)/detectors/$(DETECTOR).zip; \
 		else \
 			echo "$(PRJ_WWW)/detectors/$(DETECTOR).zip is already up-to-date."; \
 		fi \
CVSspam 0.2.8