You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by rj...@apache.org on 2011/06/20 11:27:30 UTC

svn commit: r1137559 - /tomcat/trunk/bin/digest.bat

Author: rjung
Date: Mon Jun 20 09:27:30 2011
New Revision: 1137559

URL: http://svn.apache.org/viewvc?rev=1137559&view=rev
Log:
Make Windows shell scripts for individual
commands consistent.

Modified:
    tomcat/trunk/bin/digest.bat

Modified: tomcat/trunk/bin/digest.bat
URL: http://svn.apache.org/viewvc/tomcat/trunk/bin/digest.bat?rev=1137559&r1=1137558&r2=1137559&view=diff
==============================================================================
--- tomcat/trunk/bin/digest.bat (original)
+++ tomcat/trunk/bin/digest.bat Mon Jun 20 09:27:30 2011
@@ -22,10 +22,13 @@ rem $Id$
 rem ---------------------------------------------------------------------------
 
 rem Guess CATALINA_HOME if not defined
+set "CURRENT_DIR=%cd%"
 if not "%CATALINA_HOME%" == "" goto gotHome
-set CATALINA_HOME=.
+set "CATALINA_HOME=%CURRENT_DIR%"
 if exist "%CATALINA_HOME%\bin\tool-wrapper.bat" goto okHome
-set CATALINA_HOME=..
+cd ..
+set "CATALINA_HOME=%cd%"
+cd "%CURRENT_DIR%"
 :gotHome
 if exist "%CATALINA_HOME%\bin\tool-wrapper.bat" goto okHome
 echo The CATALINA_HOME environment variable is not defined correctly



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org