19236
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
1 @echo off
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
2 set emacs_dir=c:\emacs
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
3
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
4 REM Here begins emacs.bat.in
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
5
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
6 REM Set OS specific values.
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
7 set ARCH_SAVE=%PROCESSOR_ARCHITECTURE%
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
8 set PROCESSOR_ARCHITECTURE=
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
9 if "%ARCH_SAVE%" == "%PROCESSOR_ARCHITECTURE%" goto win95
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
10 set PROCESSOR_ARCHITECTURE=%ARCH_SAVE%
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
11 set SHELL=cmd
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
12 goto next
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
13
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
14 :win95
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
15 set SHELL=command
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
16
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
17 :next
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
18
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
19 set EMACSLOADPATH=%emacs_dir%\lisp
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
20 set EMACSDATA=%emacs_dir%\etc
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
21 set EMACSPATH=%emacs_dir%\bin
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
22 set EMACSLOCKDIR=%emacs_dir%\lock
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
23 set INFOPATH=%emacs_dir%\info
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
24 set EMACSDOC=%emacs_dir%\etc
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
25 set TERM=CMD
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
26
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
27 REM The variable HOME is used to find the startup file, ~\_emacs. Ideally,
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
28 REM this will not be set in this file but should already be set before
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
29 REM this file is invoked. If HOME is not set, use some generic default.
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
30
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
31 set HOME_SAVE=%HOME%
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
32 set HOME_EXISTS=yes
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
33 set HOME_DEFAULT=C:\
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
34 set HOME=
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
35 if "%HOME%" == "%HOME_SAVE%" set HOME_EXISTS=no
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
36 if "%HOME_EXISTS%" == "yes" set HOME=%HOME_SAVE%
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
37 if "%HOME_EXISTS%" == "no" set HOME=%HOME_DEFAULT%
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
38 if "%HOME_EXISTS%" == "no" echo HOME is not set! Using %HOME% as a default...
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
39
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
40 start c:\msdev\bin\msdev -nologo %emacs_dir%\bin\emacs.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
|