Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9E70317F23 for ; Thu, 12 Mar 2015 11:17:05 +0000 (UTC) Received: (qmail 14452 invoked by uid 500); 12 Mar 2015 11:17:05 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 14404 invoked by uid 500); 12 Mar 2015 11:17:05 -0000 Mailing-List: contact dev-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 dev@cloudstack.apache.org Received: (qmail 14387 invoked by uid 99); 12 Mar 2015 11:17:04 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Mar 2015 11:17:04 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id DA6F1E0A4E; Thu, 12 Mar 2015 11:17:04 +0000 (UTC) From: bhaisaab To: dev@cloudstack.apache.org Reply-To: dev@cloudstack.apache.org References: In-Reply-To: Subject: [GitHub] cloudstack pull request: Fix the bug when build apidoc under windo... Content-Type: text/plain Message-Id: <20150312111704.DA6F1E0A4E@git1-us-west.apache.org> Date: Thu, 12 Mar 2015 11:17:04 +0000 (UTC) Github user bhaisaab commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/114#discussion_r26293610 --- Diff: tools/apidoc/build-apidoc.sh --- @@ -62,7 +62,18 @@ 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) + WINOS=`uname -s|grep -i WIN` + gen_toc_file='' + if [ "x$WINOS" != "x" ]; then + gen_toc_file="`cygpath -w $thisdir`\\gen_toc.py" + else + gen_toc_file="$thisdir/gen_toc.py" + fi + + argfiles=`find . -type f` --- End diff -- Instead of looping on the found files (argfiles), you can simply give pass it to gen_toc_file? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---