[Saegewerk-commits] r7 - trunk

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Jun 30 14:57:29 CEST 2008


Author: khruskowski
Date: 2008-06-30 14:57:29 +0200 (Mon, 30 Jun 2008)
New Revision: 7

Modified:
   trunk/Makefile
Log:
new makefile


Modified: trunk/Makefile
===================================================================
--- trunk/Makefile	2008-06-26 14:16:19 UTC (rev 6)
+++ trunk/Makefile	2008-06-30 12:57:29 UTC (rev 7)
@@ -1,24 +1,29 @@
 
-HTDOCS_DIR=htdocs/
+#REPORTS_DIR=/tmp/saegewerk/treepkg-status-cache/
+HTDOCS_DIR=/tmp/saegewerker/treepkg-status-cache/
 TEMPLATE_DIR=template/
-ONLINE_REPOS=fnord at saegewerk.wald.intevation.de
+ONLINE_REPOS=saegewerk.wald.intevation.org
 ONLINE_HTDOCS=/saegewerk/htdocs/
 
 all: build_website
-	@echo "done."
+#@echo "done."
 
 build_website:
-	@echo "building website..."
+#@echo "building website..."
+#rsync -rlzvp --delete kolabbot at hipponoe:$(REPORTS_DIR) $(HTDOCS_DIR)
+	rm -f $(HTDOCS_DIR)index.html
+	find $(HTDOCS_DIR) -type d -print0 | xargs -0 chmod 2775
+	find $(HTDOCS_DIR) -type f -print0 | xargs -0 chmod 664
 	python generate_site.py $(TEMPLATE_DIR) $(HTDOCS_DIR)
 # remove .svn from htdocs/img/
 	rm -Rf $(HTDOCS_DIR)img/.svn
 
-online: 
+online:
 # upload data
-	rsync -rloDhzv --del --progress $(HTDOCS_DIR) $(ONLINE_REPOS):$(ONLINE_HTDOCS) --exclude="reports/"
-	@echo "Site online."
+	rsync -rlzp --delete $(HTDOCS_DIR) $(ONLINE_REPOS):$(ONLINE_HTDOCS)
+#@echo "Site online."
 
 clean: clean_htdocs
-	cd $(HTDOCS_DIR); rm -Rf * 
-	@echo "clean."
+	cd $(HTDOCS_DIR); rm -Rf *
+#@echo "clean."
 



More information about the Saegewerk-commits mailing list