ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30366] - %OS% is different on Novell login
Date Wed, 28 Jul 2004 15:54:20 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30366>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30366

%OS% is different on Novell login





------- Additional Comments From gudnabrsam@yahoo.com  2004-07-28 15:54 -------
Looks fine to me with this exception:

 rem Change drive and directory to %1
-if "%OS%"=="Windows_NT" cd /d ""%1""
 if not "%OS%"=="Windows_NT" cd ""%1""
+if "%OS%"=="Windows_NT" cd /d ""%1""
+if "%OS%"=="WINNT" cd /d ""%1""
 shift

Don't you think this should be more along the lines of:

 rem Change drive and directory to %1
-if "%OS%"=="Windows_NT" cd /d ""%1""
-if not "%OS%"=="Windows_NT" cd ""%1""
+if "%OS%"=="Windows_NT" goto nt_cd
+if "%OS%"=="WINNT" goto nt_cd
+cd ""%1""
+goto end_cd
+:nt_cd
+cd /d ""%1""
+:end_cd
 shift

-Matt

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


Mime
View raw message