File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919sourcedir=~ /incubator-cloudstack/
2020common_content_dir=/usr/share/publican/Common_Content
2121publican_path=/usr/bin/publican
22+ output_format=" html,pdf"
2223
2324usage (){
2425 echo " usage: $0 [-s source dir] [-c publican common content] [-p path to publican]"
2526 echo " -s sets the source directory (defaults to $sourcedir )"
2627 echo " -c sets the public common content directory (defaults to $common_content_dir )"
2728 echo " -p sets the path to the publican binary (defaults to $publican_path )"
29+ echo " -f sets the output format (defaults to $output_format )"
2830 echo " -h"
2931}
3032
31- while getopts v:s:c:p:h opt
33+ while getopts v:s:c:p:f: h opt
3234do
3335 case " $opt " in
3436 v) version=" $OPTARG " ;;
3537 s) sourcedir=" $OPTARG " ;;
3638 c) common_content_dir=" $OPTARG " ;;
3739 p) publican_path=" $OPTARG " ;;
40+ f) output_format=" $OPTARG " ;;
3841 h) usage
3942 exit 0;;
4043 \? )
5659cd $sourcedir /docs
5760cp -R /usr/share/publican/Common_Content .
5861ln -s $sourcedir /docs/publican-cloudstack Common_Content/cloudstack
59- publican build --config=publican-installation.cfg --formats html,pdf --langs en-US --common_content=$sourcedir /docs/Common_Content
62+ publican build --config=publican-installation.cfg --formats $output_format --langs en-US --common_content=$sourcedir /docs/Common_Content
6063rm -r Common_Content
You can’t perform that action at this time.
0 commit comments