Return-Path: Delivered-To: apmail-forrest-svn-archive@www.apache.org Received: (qmail 88872 invoked from network); 2 Aug 2004 03:41:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Aug 2004 03:41:43 -0000 Received: (qmail 28140 invoked by uid 500); 2 Aug 2004 03:41:36 -0000 Delivered-To: apmail-forrest-svn-archive@forrest.apache.org Received: (qmail 27937 invoked by uid 500); 2 Aug 2004 03:41:33 -0000 Mailing-List: contact svn-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: "Forrest Developers List" Delivered-To: mailing list svn@forrest.apache.org Received: (qmail 27835 invoked by uid 99); 2 Aug 2004 03:41:32 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.27.1) with SMTP; Sun, 01 Aug 2004 20:41:32 -0700 Received: (qmail 88264 invoked by uid 65534); 2 Aug 2004 03:41:31 -0000 Date: 2 Aug 2004 03:41:31 -0000 Message-ID: <20040802034131.88263.qmail@minotaur.apache.org> From: brondsem@apache.org To: svn@forrest.apache.org Subject: svn commit: rev 35553 - forrest/trunk/src/core/bin X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Author: brondsem Date: Sun Aug 1 18:10:06 2004 New Revision: 35553 Modified: forrest/trunk/src/core/bin/forrest Log: invoking forrest works from symlink and regular file Modified: forrest/trunk/src/core/bin/forrest ============================================================================== --- forrest/trunk/src/core/bin/forrest (original) +++ forrest/trunk/src/core/bin/forrest Sun Aug 1 18:10:06 2004 @@ -35,8 +35,9 @@ fi # use the location of this script to infer $FORREST_HOME -realpath_listing=$(ls $0) -realpath="${realpath_listing#*-> }" +realpath_listing=$(ls -l $0) +realpath="${realpath_listing#*-> }" # strip everything before '-> ' +realpath="/${realpath#*/}" # strip everything before '/' (in case there wasn't a ->) FORREST_HOME=`dirname "$realpath"`/.. # Save old ANT_HOME