-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.bat
84 lines (63 loc) · 1.91 KB
/
build.bat
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
@echo off
rem
rem $Id: build.bat $
rem
:BUILD_FMT
cls
pushd "%~dp0"
set HG_START_DP_FMT_BUILD_BAT=%CD%
popd
set HG_CLEAN=
if /I not "%1" == "/C" goto ROOT
shift
set HG_CLEAN=/C
set HG_ROOT=
:ROOT
if not "%HG_ROOT%" == "" goto TEST
pushd "%HG_START_DP_FMT_BUILD_BAT%\.."
set HG_ROOT=%CD%
popd
:TEST
if /I "%1"=="HM30" ( shift & goto CALL30 )
if /I "%1"=="HM32" ( shift & goto CALL32 )
if /I "%1"=="HM3264" ( shift & goto CALL3264 )
if /I "%1"=="HM34" ( shift & goto CALL34 )
if /I "%1"=="HM3464" ( shift & goto CALL3464 )
:NOVERSION
if exist "%HG_ROOT%\BuildApp30.bat" goto CALL30
if exist "%HG_ROOT%\BuildApp32.bat" goto CALL32
if exist "%HG_ROOT%\BuildApp3264.bat" goto CALL3264
if exist "%HG_ROOT%\BuildApp34.bat" goto CALL34
if exist "%HG_ROOT%\BuildApp3464.bat" goto CALL3464
:VERSIONNEEDED
echo Syntax:
echo To build with Harbour 3.0 and MinGW
echo build [/C] HM30 [options]
echo To build with Harbour 3.2 and MinGW
echo build [/C] HM32 [options]
echo To build with Harbour 3.2 and MinGW, 64 bits
echo build [/C] HM3264 [options]
echo To build with Harbour 3.4 and MinGW
echo build [/C] HM34 [options]
echo To build with Harbour 3.4 and MinGW, 64 bits
echo build [/C] HM3464 [options]
echo.
goto END
:CALL30
call "%HG_ROOT%\BuildApp.bat" %HG_CLEAN% HM30 ofmt %1 %2 %3 %4 %5 %6 %7 %8 %9
goto END
:CALL32
call "%HG_ROOT%\BuildApp.bat" %HG_CLEAN% HM32 ofmt %1 %2 %3 %4 %5 %6 %7 %8 %9
goto END
:CALL3264
call "%HG_ROOT%\BuildApp.bat" %HG_CLEAN% HM3264 ofmt %1 %2 %3 %4 %5 %6 %7 %8 %9
goto END
:CALL34
call "%HG_ROOT%\BuildApp.bat" %HG_CLEAN% HM34 ofmt %1 %2 %3 %4 %5 %6 %7 %8 %9
goto END
:CALL3464
call "%HG_ROOT%\BuildApp.bat" %HG_CLEAN% HM3464 ofmt %1 %2 %3 %4 %5 %6 %7 %8 %9
goto END
:END
set HG_CLEAN=
set HG_START_DP_FMT_BUILD_BAT=