Menu

[r27]: / BuildScript / check-dirs.cmd  Maximize  Restore  History

Download this file

52 lines (46 with data), 1.5 kB

 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
@IF DEFINED NOECHO echo off
echo ====== Check Directories ======
echo ====== Check Directories====== > %LOG_DIR%\check-dirs.log
rem Check that the subversion code exists here.
pushd %ROOT%\%DIR%
if not exist subversion goto wrongstartdir
cd %ROOT%
rem ====== Check the prerequisites are at least in the right place.
if not exist %HTTPDDIR% goto httpderr
if not exist %HTTPDDIR%\srclib\openssl goto opensslerr
if not exist %DIR% goto svnerr
if not exist %HTTPDDIR%\srclib\zlib goto zliberr
if not exist db-%BDBFULLVER% goto bdberr
if not exist %DIR%\neon goto neonerr
if not exist cyrus-sasl-%SASLVER% goto cyrussaslerr
popd
exit /B 0
:wrongstartdir
echo Unable to find %ROOT%\%DIR%\subversion >> %LOG_DIR%\check-dirs.log
goto FAIL
:httpderr
echo Unable to find %HTTPDDIR% >> %LOG_DIR%\check-dirs.log
goto FAIL
:opensslerr
echo Unable to find openssl-%OPENSSLVER% >> %LOG_DIR%\check-dirs.log
goto FAIL
:svnerr
echo Unable to find Subversion source in %DIR% >> %LOG_DIR%\check-dirs.log
goto FAIL
:zliberr
echo Unable to find zlib >> %LOG_DIR%\check-dirs.log
goto FAIL
:bdberr
echo Unable to find Berekely DB >> %LOG_DIR%\check-dirs.log
goto FAIL
:neonerr
echo Unable to find neon >> %LOG_DIR%\check-dirs.log
goto FAIL
:cyrussaslerr
echo Unable to find cyrus-sasl >> %LOG_DIR%\check-dirs.log
goto FAIL
:FAIL
popd
echo ****** Directory check failed ****** >> %LOG_DIR%\check-dirs.log
type %LOG_DIR%\check-dirs.log
exit /B 1
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.