Return-Path: X-Original-To: apmail-cloudstack-commits-archive@www.apache.org Delivered-To: apmail-cloudstack-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8B735F905 for ; Tue, 16 Apr 2013 18:50:15 +0000 (UTC) Received: (qmail 89303 invoked by uid 500); 16 Apr 2013 18:50:13 -0000 Delivered-To: apmail-cloudstack-commits-archive@cloudstack.apache.org Received: (qmail 89237 invoked by uid 500); 16 Apr 2013 18:50:13 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 89106 invoked by uid 99); 16 Apr 2013 18:50:13 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Apr 2013 18:50:13 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 20B821FB16; Tue, 16 Apr 2013 18:50:13 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: bfederle@apache.org To: commits@cloudstack.apache.org Date: Tue, 16 Apr 2013 18:50:18 -0000 Message-Id: <0b30e90581594131899d52e7785e0591@git.apache.org> In-Reply-To: <95a744698e244c3083d0dc3bcfb68c94@git.apache.org> References: <95a744698e244c3083d0dc3bcfb68c94@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [07/50] [abbrv] git commit: updated refs/heads/ui-mixed-zone-management to 5891f09 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/ui-mixed-zone-management Commit: c5b10a71df67cd03b02ae9eb69fc17f9c7161a0b Parents: 15c2619 Author: Wido den Hollander Authored: Sat Apr 13 11:13:01 2013 +0200 Committer: Wido den Hollander 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