tools: Add option to specify publican configuration file for building the docs
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/c5b10a71 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c5b10a71 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c5b10a71 Branch: refs/heads/cisco-vnmc-api-integration Commit: c5b10a71df67cd03b02ae9eb69fc17f9c7161a0b Parents: 15c2619 Author: Wido den Hollander <w...@42on.com> Authored: Sat Apr 13 11:13:01 2013 +0200 Committer: Wido den Hollander <w...@42on.com> Committed: Sat Apr 13 11:13:01 2013 +0200 ---------------------------------------------------------------------- tools/build/build_docs.sh | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c5b10a71/tools/build/build_docs.sh ---------------------------------------------------------------------- diff --git a/tools/build/build_docs.sh b/tools/build/build_docs.sh index 62617a3..11b2414 100755 --- a/tools/build/build_docs.sh +++ b/tools/build/build_docs.sh @@ -20,6 +20,7 @@ sourcedir=~/incubator-cloudstack/ common_content_dir=/usr/share/publican/Common_Content publican_path=/usr/bin/publican output_format="html,pdf" +config="publican-adminguide.cfg" usage(){ echo "usage: $0 [-s source dir] [-c publican common content] [-p path to publican]" @@ -27,10 +28,11 @@ usage(){ echo " -c sets the public common content directory (defaults to $common_content_dir)" echo " -p sets the path to the publican binary (defaults to $publican_path)" echo " -f sets the output format (defaults to $output_format)" - echo " -h" + echo " -g sets the publican config file (defaults to $config)" + echo " -h show this help" } -while getopts v:s:c:p:f:h opt +while getopts v:s:c:p:f:g:h opt do case "$opt" in v) version="$OPTARG";; @@ -38,6 +40,7 @@ do c) common_content_dir="$OPTARG";; p) publican_path="$OPTARG";; f) output_format="$OPTARG";; + g) config="$OPTARG";; h) usage exit 0;; \?) @@ -59,5 +62,5 @@ fi cd $sourcedir/docs cp -R /usr/share/publican/Common_Content . ln -s $sourcedir/docs/publican-cloudstack Common_Content/cloudstack -publican build --config=publican-installation.cfg --formats $output_format --langs en-US --common_content=$sourcedir/docs/Common_Content -rm -r Common_Content \ No newline at end of file +publican build --config=$config --formats $output_format --langs en-US --common_content=$sourcedir/docs/Common_Content +rm -r Common_Content