Return-Path: X-Original-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A57C2D8EA for ; Mon, 30 Jul 2012 19:58:37 +0000 (UTC) Received: (qmail 92268 invoked by uid 500); 30 Jul 2012 19:58:37 -0000 Delivered-To: apmail-incubator-callback-commits-archive@incubator.apache.org Received: (qmail 92201 invoked by uid 500); 30 Jul 2012 19:58:37 -0000 Mailing-List: contact callback-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-commits@incubator.apache.org Received: (qmail 91839 invoked by uid 99); 30 Jul 2012 19:58:37 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jul 2012 19:58:37 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id A6C5C1A1FE; Mon, 30 Jul 2012 19:58:36 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: shazron@apache.org To: callback-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [13/15] ios commit: Fixed bin/create to detect both symlinks and regular paths Message-Id: <20120730195836.A6C5C1A1FE@tyr.zones.apache.org> Date: Mon, 30 Jul 2012 19:58:36 +0000 (UTC) Fixed bin/create to detect both symlinks and regular paths Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/6e7ff96e Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/6e7ff96e Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/6e7ff96e Branch: refs/heads/master Commit: 6e7ff96e10d5ed3f610df0cf03a5ce2ec3e3f68e Parents: cfa66b5 Author: Shazron Abdullah Authored: Wed Jul 25 18:01:15 2012 -0700 Committer: Shazron Abdullah Committed: Mon Jul 30 12:52:25 2012 -0700 ---------------------------------------------------------------------- bin/create | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/6e7ff96e/bin/create ---------------------------------------------------------------------- diff --git a/bin/create b/bin/create index cf29516..349b2b8 100755 --- a/bin/create +++ b/bin/create @@ -44,8 +44,13 @@ if [ $# -lt 3 ]; then fi # the two lines below are to get the current folder, and resolve symlinks -SCRIPT=`readlink $0` -BINDIR=`dirname $SCRIPT` +SCRIPT="$0" +# need this for relative symlinks +while [ -h "$SCRIPT" ] ; do + SCRIPT=`readlink "$SCRIPT"` +done + +BINDIR=$( cd "$( dirname "$SCRIPT" )" && pwd ) PROJECT_PATH=$1 PACKAGE=$2