You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@incubator.apache.org by wa...@apache.org on 2019/04/03 23:14:27 UTC

[incubator] branch master updated: Allow local build of SVN content if desired

This is an automated email from the ASF dual-hosted git repository.

wave pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator.git


The following commit(s) were added to refs/heads/master by this push:
     new 20a2891  Allow local build of SVN content if desired
20a2891 is described below

commit 20a28911cdd66991cdce2bc0ffa9c58b62553697
Author: Dave Fisher <da...@davefisher.tech>
AuthorDate: Wed Apr 3 16:14:23 2019 -0700

    Allow local build of SVN content if desired
---
 build_local_clutch.sh | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

diff --git a/build_local_clutch.sh b/build_local_clutch.sh
new file mode 100644
index 0000000..958138e
--- /dev/null
+++ b/build_local_clutch.sh
@@ -0,0 +1,52 @@
+#!/bin/bash
+CURRENTDIR=`pwd`
+SVN_CO_DIR=/tmp/incubator-site-content
+SVN_BUILD_DIR=/tmp/incubator-site-build
+SVN_REPO=http://svn.apache.org/repos/asf/incubator/public/trunk/
+WORKDIR=/tmp/incubator-site
+
+rm -rf $WORKDIR
+mkdir -p $WORKDIR
+# download the svn bits
+rm -rf $SVN_CO_DIR
+rm -rf $SVN_BUILD_DIR
+svn co $SVN_REPO $SVN_CO_DIR
+if [ $? -gt 0 ]; then
+    echo ABORT: svn checkout error
+    exit 4
+fi
+cd $SVN_CO_DIR
+# build pages the old way
+ant docs -Ddocs.dest=$SVN_BUILD_DIR
+if [ $? -gt 0 ]; then
+    echo ABORT: ant docs error
+    exit 4
+fi
+# run clutch2 analysis
+./clutch2.sh
+if [ $? -gt 0 ]; then
+    echo ABORT: clutch2.sh error
+    exit 4
+fi
+# prepare the git master with updates from svn build and clutch analysis
+cd "$CURRENTDIR"
+pwd
+# move in files built using ant in the old style
+# ip clearance as assets
+rm -rf assets/ip-clearance
+mkdir assets/ip-clearance
+cp $SVN_BUILD_DIR/ip-clearance/*.html assets/ip-clearance/.
+# podling status files as assets
+rm -rf assets/projects
+mkdir assets/projects
+cp $SVN_BUILD_DIR/projects/*.html assets/projects/.
+# move in files from the clutch analysis
+# these txt files are moved to assets
+cp $SVN_CO_DIR/content/clutch/*.txt assets/.
+cp $SVN_CO_DIR/content/clutch/*.json assets/.
+# the following asciidoc clutch files go to be baked
+cp $SVN_CO_DIR/content/clutch/_includes/*.ad pages/clutch/_includes/.
+cp $SVN_CO_DIR/content/clutch/*.ad pages/clutch/.
+
+# now bake the site
+./bake.sh -b -s . $WORKDIR


---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org