Skip to content
Newer
Older
100644 45 lines (38 sloc) 1.37 KB
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
1 @echo off
2
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
3 if "%1"=="clean" goto Clean
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
4 echo Checking environment...
3a9bb55 @mbert Import Elvis 2.1_3 (written by Steve Kirkendall)
authored
5 if "%INCLUDE%"=="" goto EnvNeeded
6 echo Environment variables already set
7 goto EnvDone
8 :EnvNeeded
9 if exist \msdev\bin\vcvars32.bat call \msdev\bin\vcvars32
10 if exist "C:\Program Files\Microsoft Visual Studio\VC98\Bin\vcvars32.bat" call "C:\Program Files\Microsoft Visual Studio\VC98\Bin\vcvars32"
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
11 if "%INCLUDE%"=="" call vcvars32
3a9bb55 @mbert Import Elvis 2.1_3 (written by Steve Kirkendall)
authored
12 :EnvDone
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
13
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
14 echo Configuring...
15 if not exist make.bat copy makwin32.bat make.bat
16 if not exist ctags.mak copy oswin32\ctags.mak
17 if not exist elvis.mak copy oswin32\elvis.mak
18 if not exist elvisutl.mak copy oswin32\elvisutl.mak
19 if not exist fmt.mak copy oswin32\fmt.mak
20 if not exist ref.mak copy oswin32\ref.mak
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
21 if not exist winelvis.mak copy oswin32\winelvis.mak
22 if not exist wintags.mak copy oswin32\wintags.mak
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
23 if not exist config.h copy oswin32\osconfig.h config.h
24 if not exist WinRel\nul md WinRel
25
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
26 echo Compiling text-mode utilities...
27 nmake /nologo /s /f elvis.mak "CFG=elvis - Win32 Release"
28 if errorlevel 1 goto Fail
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
29 nmake /nologo /s /f elvisutl.mak
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
30 if errorlevel 1 goto Fail
31
32 echo Compiling graphical utilities...
33 nmake /nologo /s /f winelvis.mak CFG="WinElvis - Win32 Release"
34 if errorlevel 1 goto Fail
35 nmake /nologo /s /f wintags.mak CFG="WinTags - Win32 Release"
36 if errorlevel 1 goto Fail
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
37 goto Done
38
39 :Clean
40 deltree /y winrel
41 deltree /y guirel
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
42
43 :Fail
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
44 :Done
Something went wrong with that request. Please try again.