2 rem Copyright (C): 2001, 2002 Earnie Boyd
\r
3 rem mailto:earnie@users.sf.net
\r
4 rem This file is part of Minimal SYStem
\r
5 rem http://www.mingw.org/msys.shtml
\r
9 rem Revision Date: April 17th, 2002
\r
11 rem ember to set the "Start in:" field of the shortcut.
\r
12 rem A value similar to C:\msys\1.0\bin is what the "Start in:" field needs
\r
15 rem ember value of GOTO: is used to know recursion has happened.
\r
16 if "%1" == "GOTO:" goto %2
\r
18 rem ember command.com only uses the first eight characters of the label.
\r
21 rem ember that we only execute here if we are in command.com.
\r
24 if "x%COMSPEC%" == "x" set COMSPEC=command.com
\r
25 start %COMSPEC% /e:4096 /c %0 GOTO: _Resume %0 %1 %2 %3 %4 %5 %6 %7 %8 %9
\r
28 rem ember that we execute here if we recursed.
\r
30 for %%F in (1 2 3) do shift
\r
32 rem ember that we get here even in command.com.
\r
35 if "x%MSYSTEM%" == "x" set MSYSTEM=MINGW32
\r
36 if "%1" == "MSYS" set MSYSTEM=MSYS
\r
38 if NOT "x%DISPLAY%" == "x" set DISPLAY=
\r
40 if EXIST bin\nul cd bin
\r
41 if EXIST sh.exe goto startsh
\r
42 if EXIST rxvt.exe goto startrxvt
\r
44 echo Cannot find the rxvt.exe or sh.exe binary -- aborting.
\r
48 rem If you don't want to use rxvt then rename the file rxvt.exe to something
\r
49 rem else. Then sh.exe will be used instead.
\r
52 rem Setup the default colors for rxvt.
\r
53 if "x%MSYSBGCOLOR%" == "x" set MSYSBGCOLOR=White
\r
54 if "x%MSYSFGCOLOR%" == "x" set MSYSFGCOLOR=Black
\r
55 if "x%MINGW32BGCOLOR%" == "x" set MINGW32BGCOLOR=LightYellow
\r
56 if "x%MINGW32FGCOLOR%" == "x" set MINGW32FGCOLOR=Navy
\r
57 if "%MSYSTEM%" == "MSYS" set BGCOLOR=%MSYSBGCOLOR%
\r
58 if "%MSYSTEM%" == "MSYS" set FGCOLOR=%MSYSFGCOLOR%
\r
59 if "%MSYSTEM%" == "MINGW32" set BGCOLOR=%MINGW32BGCOLOR%
\r
60 if "%MSYSTEM%" == "MINGW32" set FGCOLOR=%MINGW32FGCOLOR%
\r
62 start rxvt -backspacekey
\b -sl 2500 -fg %FGCOLOR% -bg %BGCOLOR% -sr -fn Courier-12 -tn msys -geometry 80x25 -e /bin/sh --login -i
\r
71 rem 2002.03.07 Earnie Boyd mailto:earnie@users.sf.net
\r
72 rem * Move the @echo off to the top.
\r
73 rem * Change the binmode setting to nobinmode.
\r
74 rem * Remove the angle brackets around email address to workaround MS
\r
75 rem buggy command processor.
\r
77 rem 2002.03.12 Earnie Boyd mailto:earnie@users.sf.net
\r
78 rem * Add filter logic to find rxvt.exe
\r
80 rem 2002.03.13 Earnie Boyd mailto:earnie@users.sf.net
\r
81 rem * Revert the nobinmode change.
\r
83 rem 2002.03.20 Earnie Boyd mailto:earnie@users.sf.net
\r
84 rem * Add logic for stating bash.
\r
86 rem 2002.04.11 Earnie Boyd mailto;earnie@users.sf.net
\r
87 rem * Add logic for setting MSYSTEM value based on parameter.
\r
89 rem 2002.04.15 Olivier Gautherot mailto:olivier_gautherot@mentorg.com
\r
90 rem * Reduce number test conditions for finding an executable.
\r
92 rem 2002.04.15 Earnie Boyd mailto:earnie@users.sf.net
\r
93 rem * Unset DISPLAY if set before starting shell.
\r
95 rem 2002.04.16 Earnie Boyd mailto:earnie@users.sf.net
\r
96 rem * Remove use of DEFINED in conditional statments for variables for
\r
97 rem command.com support.
\r
98 rem * Add check for nonexistance of USERNAME variable for Win9x support.
\r
100 rem 2002.04.17 Earnie Boyd mailto:earnie@users.sf.net
\r
101 rem * Add foreground and background color defaults based on MSYSTEM value.
\r
103 rem 2002.04.22 Earnie Boyd mailto:earnie@users.sf.net
\r
104 rem * More Win 9x changes.
\r
106 rem 2002.05.04 Earnie Boyd mailto:earnie@users.sf.net
\r
107 rem * Remove the SET of USERNAME and HOME.
\r
109 rem 2002.11.18 Earnie Boyd mailto:earnie@users.sf.net
\r
110 rem * Add command.com detection and restart with a larger environment to
\r
111 rem avoid errors on w9x.
\r
112 rem Many thanks to Randy W. Sims mailto:RandyS@ThePierianSpring.org.
\r
113 rem See Randy's response to "RE: [Mingw-msys] Installation on WindowsME"
\r
114 rem from 11/06/2002 in the archives of mingw-msys@lists.sf.net.
\r
116 rem 2002.11.19 Paul Garceau mailto:pgarceau@attbi.com
\r
117 rem * Fix a typo: Change COMPSPEC to COMSPEC.
\r
119 rem 2002.11.25 Earnie Boyd mailto:earnie@users.sf.net
\r
120 rem * Remove the SET CYGWIN since it doesn't matter any longer.
\r
122 rem 2003.02.03 Earnie Boyd mailto:earnie@users.sf.net
\r
123 rem * Win9x doesn't like ``EXISTS dir'' so change it to ``EXISTS dir\nul''.
\r
124 rem Thanks to Nicolas Weber mailto:nicolasweber@gmx.de.
\r
126 rem 2003.03.06 Earnie Boyd mailto:earnie@users.sf.net
\r
127 rem * Add -backspacekey switch to rxvt startup.
\r
128 rem * Move RXVT color setup to startrxvt label
\r
130 rem 2004.01.30 Earnie Boyd mailto:earnie@users.sf.net
\r
131 rem * Add -geometry parameter to work around an off by one issue with
\r
132 rem the default values.
\r
133 rem Thanks to Dave Schuyler mailto:parameter@users.sf.net
\r