]> andersk Git - splint.git/blame - os2/makeos2.cmd
files to circumvent automatic header file generation
[splint.git] / os2 / makeos2.cmd
CommitLineData
e5a87a6c 1@echo off\r
2setlocal\r
3set version=3.0.0.16\r
4set base=e:\usr\src\lclint-%version%\r
5if "%1"=="" goto icc\r
6if "%1"=="--icc" goto icc\r
7if "%1"=="-i" goto icc\r
8if "%1"=="--emx" goto emx\r
9if "%1"=="-e" goto emx\r
10if "%1"=="--gcc" goto gcc\r
11if "%1"=="-g" goto gcc\r
12if "%1"=="--oldconf" goto oldconf\r
13if "%1"=="-o" goto oldconf\r
14if "%1"=="--test" goto test\r
15if "%1"=="-t" goto test\r
16if "%1"=="--package" goto package\r
17if "%1"=="-p" goto package\r
18"echo.exe" "usage: makeos2 [--emx|-e|--gcc|-g|--icc|-i|--oldconf|-o|--test|-t|--package|-p]"\r
19goto end\r
20\r
21:emx\r
22set COMPILER=gcc-emx\r
23goto initial\r
24\r
25:gcc\r
26set COMPILER=gcc-os2\r
27goto initial\r
28\r
29:icc\r
30set COMPILER=icc-os2\r
31goto initial\r
32\r
33:initial\r
34sh -c "export TODAY=`date.exe`; export LCL_DATE=`date.exe | cut -d ' ' -f 2,3,6`; make -e -f Makefile.os2 %2 %3 %4 %5 %6 %7 %8 %9"\r
35goto end\r
36\r
37:oldconf\r
e5d2a658 38if not exist %base%\src\Headers\local_constants.h copy local_constants.h %base%\src\Headers\local_constants.h\r
39if not exist %base%\src\Headers\heral.h copy local_constants.h %base%\src\Headers\herald.h\r
e5a87a6c 40make -f Makefile.os2 --directory=../src --warn-undefined-variables %2 %3 %4 %5 %6 %7 %8 %9 \r
41if errorlevel 0 mv ..\src\lclint.exe ..\bin\r
42goto end\r
43\r
44:test\r
45set LARCH_PATH=%base%\lib\r
46set LCLIMPORTDIR=%base%\imports\r
47cd ..\test\r
48echo it's %LARCH_PATH% and %LCLIMPORTDIR%\r
49make LCLINT=%base%\bin\lclint %2 -e -f Makefile-test.os2\r
50cd ..\os2\r
51goto end\r
52\r
53:package\r
54cd %base%\..\r
55rm -f lclint-%version%-os2-*.tar*\r
56tar cvf lclint-%version%-os2-bin.tar lclint-%version%\bin lclint-%version%\imports lclint-%version%\lib lclint-%version%\os2 lclint-%version%\test lclint-%version%\BUFFERCHECKING lclint-%version%\LICENSE lclint-%version%\README\r
57tar cvf lclint-%version%-os2-all.tar lclint-%version%\r
58cd \export\lclint\r
59tar cvf %base%\..\lclint-%version%-os2-add.tar lclint-%version%\r
60gzip %base%\..\lclint-%version%-os2-*.tar\r
61goto end\r
62\r
63:end\r
64endlocal\r
This page took 0.093625 seconds and 5 git commands to generate.