Revision: 38774
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38774
Author:   campbellbarton
Date:     2011-07-28 03:08:35 +0000 (Thu, 28 Jul 2011)
Log Message:
-----------
automatically update the redirect from 
http://www.blender.org/documentation/250PythonDoc/ when uploading docs

Modified Paths:
--------------
    trunk/blender/doc/python_api/sphinx_doc_gen.sh

Modified: trunk/blender/doc/python_api/sphinx_doc_gen.sh
===================================================================
--- trunk/blender/doc/python_api/sphinx_doc_gen.sh      2011-07-28 02:15:58 UTC 
(rev 38773)
+++ trunk/blender/doc/python_api/sphinx_doc_gen.sh      2011-07-28 03:08:35 UTC 
(rev 38774)
@@ -38,9 +38,12 @@
 ssh [email protected] 'rm -rf '$SSH_UPLOAD_FULL'/*'
 rsync --progress -avze "ssh -p 22" $SPHINXBASE/sphinx-out/* 
$SSH_HOST:$SSH_UPLOAD_FULL/
 
-# symlink the dir to a static URL
-ssh [email protected] 'rm '$SSH_UPLOAD'/250PythonDoc && ln -s 
'$SSH_UPLOAD_FULL' '$SSH_UPLOAD'/250PythonDoc'
+## symlink the dir to a static URL
+#ssh [email protected] 'rm '$SSH_UPLOAD'/250PythonDoc && ln -s 
'$SSH_UPLOAD_FULL' '$SSH_UPLOAD'/250PythonDoc'
 
+# better redirect
+ssh [email protected] 'echo 
"<html><head><title>Redirecting...</title><meta http-equiv=\"REFRESH\" 
content=\"0;url=../blender_python_api_'$BLENDER_VERSION'/\"></head><body>Redirecting...</body></html>"
 > '$SSH_UPLOAD'/250PythonDoc/index.html'
+
 # pdf
 sphinx-build -b latex $SPHINXBASE/sphinx-in $SPHINXBASE/sphinx-out
 cd $SPHINXBASE/sphinx-out

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to