forked from sudleyplace/386MAX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
UDLOCAL2.SRC
61 lines (51 loc) · 1.33 KB
/
UDLOCAL2.SRC
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
@echo off
REM PHDR
REM
REM Update batch file for PRJ
REM
REM Check required environment variables.
set _PROJ=%PROJ%
set PROJ=PRJ
REM This is redundant if invoked by UDLOCAL.EXE.
if "%MAXROOT%" == "" goto badvars
REM Needed by dependencies in PRJ.MAK
if "%MSVC16%" == "" goto badvars
if "%MSVC32%" == "" goto badvars
REM Check for required directories.
echo Checking directories...
vdir -c %MAXROOT%
vdir -c %MAXROOT%include %MAXROOT%inc %MAXROOT%lib %MAXROOT%%PROJ%
REM Get files in MAXROOT
echo Getting updated files in %MAXROOT%
delay 8
if errorlevel 1 goto end
%MAXROOT%
cd %MAXROOT%.
xc /n/a p:\max\pvcs.cfg
xc /n/a p:\max\lib %MAXROOT%lib
get -u $(ALL)
REM Get include files
echo Getting updated files in %MAXROOT%include
cd %MAXROOT%include
xc /n/a p:\max\include\pvcs.cfg
get -u $(ALL)
echo Getting updated files in %MAXROOT%inc
cd %MAXROOT%inc
xc /n/a p:\max\inc\pvcs.cfg
get -u $(ALL)
REM Get project files
echo Getting updated files in %MAXROOT%%PROJ%
cd %MAXROOT%%PROJ%
xc /n/a p:\max\%PROJ%\pvcs.cfg
get -u $(ALL)
echo Done.
goto end
:badvars
echo The following environment variables are not defined:
if "%MAXROOT%" == "" echo MAXROOT (ex: c:\MAX\)
if "%MSVC16%" == "" echo MSVC16 (ex: c:\msvc\)
if "%MSVC32%" == "" echo MSVC32 (ex: c:\msvc32\)
echo.
:end
set PROJ=%_PROJ%
set _PROJ=