JBoss Rich Faces SVN: r18128 - root/docs/trunk.
by richfaces-svn-commits@lists.jboss.org
Author: SeanRogers
Date: 2010-07-15 21:06:46 -0400 (Thu, 15 Jul 2010)
New Revision: 18128
Added:
root/docs/trunk/bundle_docs.sh
Log:
Added script for bundling docbook docs: RF-8902
Added: root/docs/trunk/bundle_docs.sh
===================================================================
--- root/docs/trunk/bundle_docs.sh (rev 0)
+++ root/docs/trunk/bundle_docs.sh 2010-07-16 01:06:46 UTC (rev 18128)
@@ -0,0 +1,41 @@
+#!/bin/bash
+#
+# Script to bundle all docs
+# Entire RichFaces source must be checked out to build the CDK Guide
+
+DOCSDIR=$(cd $(dirname "$0"); pwd)
+
+echo "[BUNDLE_DOCS] Enter version number: "
+read VERSION
+echo "[BUNDLE_DOCS] Creating bundle directory..."
+mkdir $DOCSDIR/$VERSION
+
+echo "[BUNDLE_DOCS] Building docbook docs..."
+mvn clean install
+
+echo "[BUNDLE_DOCS] Copying docs to bundle:"
+echo "[BUNDLE_DOCS] -> Copying Component Reference..."
+mkdir $DOCSDIR/$VERSION/Component_Reference
+cp -r $DOCSDIR/Component_Reference/target/docbook/publish/* $DOCSDIR/$VERSION/Component_Reference/
+echo "[BUNDLE_DOCS] -> Copying Developer Guide..."
+mkdir $DOCSDIR/$VERSION/Developer_Guide
+cp -r $DOCSDIR/Developer_Guide/target/docbook/publish/* $DOCSDIR/$VERSION/Developer_Guide/
+echo "[BUNDLE_DOCS] -> Copying Migration Guide..."
+mkdir $DOCSDIR/$VERSION/Migration_Guide
+cp -r $DOCSDIR/Migration_Guide/target/docbook/publish/* $DOCSDIR/$VERSION/Migration_Guide/
+
+echo "[BUNDLE_DOCS] Building CDK docs..."
+cd ../..
+cd ./cdk/trunk/docs/Component_Development_Kit_Guide/
+mvn clean install
+
+echo "[BUNDLE_DOCS] Copying docs to bundle:"
+echo "[BUNDLE_DOCS] -> Copying Component Development Kit Guide..."
+mkdir $DOCSDIR/$VERSION/Component_Development_Kit_Guide
+cp -r ./target/docbook/publish/* $DOCSDIR/$VERSION/Component_Development_Kit_Guide/
+
+echo "[BUNDLE_DOCS] Zipping bundle..."
+cd $DOCSDIR
+zip -r $VERSION.zip $DOCSDIR/$VERSION
+
+echo "[BUNDLE_DOCS] Bundle complete."
Property changes on: root/docs/trunk/bundle_docs.sh
___________________________________________________________________
Name: svn:executable
+ *