[Scipy-svn] r4902 - scipy-docs/trunk

scipy-svn@scip... scipy-svn@scip...
Sat Nov 1 14:49:22 CDT 2008


Author: ptvirtan
Date: 2008-11-01 14:49:07 -0500 (Sat, 01 Nov 2008)
New Revision: 4902

Modified:
   scipy-docs/trunk/Makefile
Log:
Add upload command

Modified: scipy-docs/trunk/Makefile
===================================================================
--- scipy-docs/trunk/Makefile	2008-11-01 18:11:13 UTC (rev 4901)
+++ scipy-docs/trunk/Makefile	2008-11-01 19:49:07 UTC (rev 4902)
@@ -22,10 +22,17 @@
 	@echo "  latex     to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
 	@echo "  changes   to make an overview over all changed/added/deprecated items"
 	@echo "  linkcheck to check all external links for integrity"
+	@echo "  upload USER=...  to upload results to docs.scipy.org"
 
 clean:
 	-rm -rf build/* source/generated
 
+upload:
+	@test -e build/dist || { echo "make dist is required first"; exit 1; }
+	@test output-is-fine -nt build/dist || { \
+	    echo "Review the output in build/dist, and do 'touch output-is-fine' before uploading."; exit 1; }
+	rsync -r --delete-after -p build/dist/ $(USER)@docs.scipy.org:/home/docserver/www-root/doc/scipy/
+
 dist: html
 	test -d build/latex || make latex
 	-make -C build/latex all-pdf
@@ -37,6 +44,8 @@
 	(cd build/html && zip -9qr ../dist/scipy-html.zip .)
 	cp build/latex/*.pdf build/dist
 	cd build/dist && tar czf ../dist.tar.gz *
+	chmod ug=rwX,o=rX -R build/dist
+	find build/dist -type d -print0 | xargs -0r chmod g+s
 
 generate: build/generate-stamp
 build/generate-stamp: $(wildcard source/*.rst) ext



More information about the Scipy-svn mailing list