You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ss...@apache.org on 2013/12/18 01:35:35 UTC

svn commit: r1551780 - /mesos/build_website.sh

Author: ssorallen
Date: Wed Dec 18 00:35:34 2013
New Revision: 1551780

URL: http://svn.apache.org/r1551780
Log:
Render Jekyll site to tmp directory to preserve SVN history

Jekyll clears its target directory before rendering, which wipes the
SVN history of the site every time. By making Jekyll render to a
temporary directory and copying the contents of the site into the
SVN repo, the SVN directories are left untouched.

Modified:
    mesos/build_website.sh

Modified: mesos/build_website.sh
URL: http://svn.apache.org/viewvc/mesos/build_website.sh?rev=1551780&r1=1551779&r2=1551780&view=diff
==============================================================================
--- mesos/build_website.sh (original)
+++ mesos/build_website.sh Wed Dec 18 00:35:34 2013
@@ -27,40 +27,16 @@ rm website/documentation/latest/getting-
 rm -rf mesos
 
 # Step 2: Build from the jekyll templates.
+#   * Render to a temporary directory and copy the generated files to
+#     preserve SVN history. Jekyll clears its target directory, which
+#     means it can't render directory into www.
 pushd website
-jekyll build
+jekyll build -d /tmp/www
 popd
 
-# We now have to clean up jekyll's mess as it wipes the .svn
-# directories during the build process. See: MESOS-829.
-svn co https://svn.apache.org/repos/asf/mesos/www /tmp/www
-
-cp -R /tmp/www/assets/.svn www/assets/
-cp -R /tmp/www/assets/* www/assets/
-cp -R /tmp/www/documentation/.svn www/documentation/
-cp -R /tmp/www/documentation/latest/.svn www/documentation/latest
-cp -R /tmp/www/documentation/latest/logging-and-debugging/.svn www/documentation/latest/logging-and-debugging
-cp -R /tmp/www/documentation/latest/deploy-scripts/.svn www/documentation/latest/deploy-scripts
-cp -R /tmp/www/documentation/latest/mesos-presentations/.svn www/documentation/latest/mesos-presentations
-cp -R /tmp/www/documentation/latest/mesos-c++-style-guide/.svn www/documentation/latest/mesos-c++-style-guide
-cp -R /tmp/www/documentation/latest/app-framework-development-guide/.svn www/documentation/latest/app-framework-development-guide
-cp -R /tmp/www/documentation/latest/mesos-developers-guide/.svn www/documentation/latest/mesos-developers-guide
-cp -R /tmp/www/documentation/latest/mesos-code-internals/.svn www/documentation/latest/mesos-code-internals
-cp -R /tmp/www/documentation/latest/high-availability/.svn www/documentation/latest/high-availability
-cp -R /tmp/www/documentation/latest/images/.svn www/documentation/latest/images
-cp -R /tmp/www/documentation/latest/mesos-roadmap/.svn www/documentation/latest/mesos-roadmap
-cp -R /tmp/www/documentation/latest/slave-recovery/.svn www/documentation/latest/slave-recovery
-cp -R /tmp/www/documentation/latest/configuration/.svn www/documentation/latest/configuration
-cp -R /tmp/www/documentation/latest/running-a-web-application-farm-on-mesos/.svn www/documentation/latest/running-a-web-application-farm-on-mesos
-cp -R /tmp/www/documentation/latest/running-torque-or-mpi-on-mesos/.svn www/documentation/latest/running-torque-or-mpi-on-mesos
-cp -R /tmp/www/documentation/latest/powered-by-mesos/.svn www/documentation/latest/powered-by-mesos
-cp -R /tmp/www/documentation/latest/using-the-mesos-submit-tool/.svn www/documentation/latest/using-the-mesos-submit-tool
-cp -R /tmp/www/documentation/latest/mesos-architecture/.svn www/documentation/latest/mesos-architecture
-cp -R /tmp/www/documentation/latest/allocation-module/.svn www/documentation/latest/allocation-module
-cp -R /tmp/www/documentation/latest/ec2-scripts/.svn www/documentation/latest/ec2-scripts
-cp -R /tmp/www/documentation/latest/upgrades/.svn www/documentation/latest/upgrades
-
+cp -R /tmp/www/* www
 rm -rf /tmp/www
 
 echo "Changes:"
 svn status
+