forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <thors...@apache.org>
Subject Re: svn commit: rev 31002 - forrest/trunk/src/core/bin
Date Fri, 30 Jul 2004 22:03:35 GMT
After this I got:
/opt/apache/forrest/src/core/bin/forrest: line 78: -rwxr-xr-x    1 
thorsten users        2174 2004-07-30 23:30 
/opt/apache/forrest/src/core/bin/../../../tools/ant/bin/ant: No existe 
el fichero o el directorio

If I reverse the changes everything is alright! BTW this time I made a 
build after update ;-)

Can you have look? TIA

King regards
thorsten

brondsem@apache.org wrote:
> Author: brondsem
> Date: Fri Jul 30 13:37:58 2004
> New Revision: 31002
> 
> Modified:
>    forrest/trunk/src/core/bin/forrest
> Log:
> allow forrest to be executed via a symlink
> 
> Modified: forrest/trunk/src/core/bin/forrest
> ==============================================================================
> --- forrest/trunk/src/core/bin/forrest	(original)
> +++ forrest/trunk/src/core/bin/forrest	Fri Jul 30 13:37:58 2004
> @@ -35,7 +35,9 @@
>  fi
>  
>  # use the location of this script to infer $FORREST_HOME
> -FORREST_HOME=`dirname "$0"`/..
> +realpath_listing=$(ls -l $0)
> +realpath="${realpath_listing#*-> }"
> +FORREST_HOME=`dirname "$realpath"`/..
>  
>  # Save old ANT_HOME
>  OLD_ANT_HOME="$ANT_HOME"
> 


Mime
View raw message