forked from richfaces/richfaces-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbundle_docs.sh
executable file
·28 lines (22 loc) · 899 Bytes
/
bundle_docs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/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] Zipping bundle..."
# cd $DOCSDIR/$VERSION/
# zip -r $VERSION.zip *
echo "[BUNDLE_DOCS] Bundle complete."