Return-Path: X-Original-To: apmail-flex-dev-archive@www.apache.org Delivered-To: apmail-flex-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 2CB5C10208 for ; Thu, 14 May 2015 11:17:52 +0000 (UTC) Received: (qmail 76983 invoked by uid 500); 14 May 2015 11:17:51 -0000 Delivered-To: apmail-flex-dev-archive@flex.apache.org Received: (qmail 76946 invoked by uid 500); 14 May 2015 11:17:51 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 76935 invoked by uid 99); 14 May 2015 11:17:51 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 May 2015 11:17:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id A2EF0C1393 for ; Thu, 14 May 2015 11:17:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.487 X-Spam-Level: *** X-Spam-Status: No, score=3.487 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 5vS_5js54uRG for ; Thu, 14 May 2015 11:17:42 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTP id 8E380428E5 for ; Thu, 14 May 2015 11:17:42 +0000 (UTC) Received: from mjoe.nabble.com (unknown [162.253.133.57]) by mwork.nabble.com (Postfix) with ESMTP id 13E4C1E410C9 for ; Thu, 14 May 2015 04:18:35 -0700 (PDT) Date: Thu, 14 May 2015 04:01:02 -0700 (PDT) From: "kevin.godell" To: dev@flex.apache.org Message-ID: <1431601262479-46505.post@n4.nabble.com> In-Reply-To: References: <1431516915190-46460.post@n4.nabble.com> <1431561971153-46490.post@n4.nabble.com> <1431574992696-46493.post@n4.nabble.com> Subject: Re: [3/3] git commit: [flex-asjs] [refs/heads/develop] - Revert "Revert "SCRIPT_HOME path had extra slash"" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Alex Harui wrote > Hi Kevin, >=20 > Yes, shell scripts are a whole different language. I=E2=80=99m no expert= either. >=20 > I think there is a fourth scenario, where FALCON_HOME is set to a folder > in a flex-falcon repo, so I=E2=80=99m not sure you can use FALCON_HOME in= stead of > SCRIPT_HOME. >=20 > To me, the issue appears to be this portion of the script: >=20 > if [ "x${FALCON_HOME}" =3D "x" ] > then > SCRIPT_HOME=3D`dirname $0` > FALCON_HOME=3D${SCRIPT_HOME}/../.. > fi >=20 > I think this might need to have SCRIPT_HOME taken out of the if/then and > run earlier. Because if FALCON_HOME is set, then SCRIPT_HOME never gets > set Yes, that makes sense now. I tried to run the script with the 3 scenarios o= f unset, trailing slash, and no slash with the code changed to: SCRIPT_HOME=3D`dirname $0` if [ "x${FALCON_HOME}" =3D "x" ] then FALCON_HOME=3D${SCRIPT_HOME}/../.. fi and=20 -jar "$SCRIPT_HOME/../lib/mxmlc.jar" It worked. -- View this message in context: http://apache-flex-development.2333347.n4.nab= ble.com/Re-3-3-git-commit-flex-asjs-refs-heads-develop-Revert-Revert-SCRIPT= -HOME-path-had-extra-slash-tp46455p46505.html Sent from the Apache Flex Development mailing list archive at Nabble.com.