summaryrefslogtreecommitdiff
path: root/MSVC/Tools/MakInDir.bat
blob: d20cba550c4de55a9a0f74c4f3224641ce7c0bdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@echo off

if "%2" == "" echo.
if "%2" == "" echo USAGE: MakInDir [Directory] [Target]
if "%2" == "" echo ------ Directory: directory to run NMAKE within
if "%2" == "" echo ------ Target: the target of the NMAKE session
if "%2" == "" goto done

cd %1
echo on
nmake /f nmakefile /nologo %2
@echo off
if errorlevel 0 goto finish else goto bomb

:bomb
if "%OS%" == "" goto Win9xbomb else goto NTbomb

:Win9xbomb
exit

:NTbomb
exit 1

:finish
cd ..

:done