You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2015/03/24 12:56:35 UTC
git commit: updated refs/heads/master to 52ffccf
Repository: cloudstack
Updated Branches:
refs/heads/master 78fd8cf2c -> 52ffccff5
tools/apidoc: Fix the bug when build apidoc under windows cygwin environment
This closes #114
Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/52ffccff
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/52ffccff
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/52ffccff
Branch: refs/heads/master
Commit: 52ffccff5f1436dd5762fcc90050aadaf82eedad
Parents: 78fd8cf
Author: Yitao Jiang <wi...@gmail.com>
Authored: Thu Mar 12 14:23:43 2015 +0800
Committer: Rohit Yadav <ro...@shapeblue.com>
Committed: Tue Mar 24 17:24:34 2015 +0530
----------------------------------------------------------------------
tools/apidoc/build-apidoc.sh | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/52ffccff/tools/apidoc/build-apidoc.sh
----------------------------------------------------------------------
diff --git a/tools/apidoc/build-apidoc.sh b/tools/apidoc/build-apidoc.sh
index 03eb687..dc3751c 100755
--- a/tools/apidoc/build-apidoc.sh
+++ b/tools/apidoc/build-apidoc.sh
@@ -62,7 +62,17 @@ set -e
sed -e 's,%API_HEADER%,Root Admin API,g' "$thisdir/generatetoc_header.xsl" >generatetocforadmin.xsl
sed -e 's,%API_HEADER%,Domain Admin API,g' "$thisdir/generatetoc_header.xsl" >generatetocfordomainadmin.xsl
- python "$thisdir/gen_toc.py" $(find . -type f)
+ PLATFORM=`uname -s`
+ if [[ "$PLATFORM" =~ .*WIN.* ]]
+ then
+ gen_toc_file="`cygpath -w $thisdir`\\gen_toc.py"
+ for file in `find . -type f`; do
+ echo "Parse file $file";
+ python $gen_toc_file $file;
+ done
+ else
+ python "$thisdir/gen_toc.py" $(find . -type f)
+ fi
cat generatetocforuser_include.xsl >>generatetocforuser.xsl
cat generatetocforadmin_include.xsl >>generatetocforadmin.xsl