@echo off REM $Header: /c/data/rcs/cygwin.bat,v 2.1 2005/04/29 21:55:41 LongPhil Stab $ REM I've had to add enough stuff to this file that I've decided to put it under REM revision control. Right now, TWO files get written each time a CYGWIN box REM opens, so I've got to fix THAT kluge, and FAST! REM REM ---------------------------------------------------------------------------- REM REM $Log: cygwin.bat,v $ REM Revision 2.1 2005/04/29 21:55:41 LongPhil REM o Changed method used by `w2kpf.sh' to examine PATH (now look REM in ENVIRONMENT rather than in first command-line argument), REM so added XJX environment variable to pass in PATH. See REM notes in `w2kpf.sh' for details. REM REM Revision 2.0 2002/11/07 00:09:16 LongPhil REM o Since I've loaded CYGWIN from scratch, wiping out the old copy REM of /cygwin.bat, I bumped the revision level to 2.0; REM o Completely revamped method of fixing Win2K PATH string (the REM MAJOR reason for bumping the revision level to 2.0). REM REM Revision 1.2 2001/11/01 16:59:35 LONGP REM o Changed unnecessary arguments to X.BAT and Y.BAT to REMarks REM just before their respective invocations, because I was getting REM weird messages that looked like they were coming from the strings REM passed as arguments every time I logged off. Hope this helps! REM REM Revision 1.1 2001/11/01 16:40:58 LONGP REM Initial revision REM REM ---------------------------------------------------------------------------- REM REM Set the CYGWIN environment variable. set CYGWIN=export ntea ntsec set CYGWINDIR=c:/util/cygwin set MP=/ C: chdir C:\util\cygwin\bin rem Use BASH to fix up Win2K PATH string (pass PATH in UNCHANGED env var). set xjx=%path% bash --noprofile --norc -c '/usr/local/bin/w2kpf.sh' rem Run .BAT file to set DOS/WIN PATH string. call x.bat set xjx= if errorlevel 1 bash --noprofile --norc -c "echo;echo 'Error returned from /bin/x.BAT!';/usr/bin/sleep 10;exit 4" rem Don't run BASH if x.BAT didn't work. if not errorlevel 1 bash --login -i