]> andersk Git - splint.git/blob - os2/makeos2.cmd
Some work on the files in os2/, removed unnecessary
[splint.git] / os2 / makeos2.cmd
1 @echo off\r
2 setlocal\r
3 call setenv.cmd\r
4 if "%1"=="" goto icc\r
5 if "%1"=="--icc" goto icc\r
6 if "%1"=="-i" goto icc\r
7 if "%1"=="--emx" goto emx\r
8 if "%1"=="-e" goto emx\r
9 if "%1"=="--gcc" goto gcc\r
10 if "%1"=="-g" goto gcc\r
11 if "%1"=="--oldconf" goto oldconf\r
12 if "%1"=="-o" goto oldconf\r
13 if "%1"=="--test" goto test\r
14 if "%1"=="-t" goto test\r
15 if "%1"=="--package" goto package\r
16 if "%1"=="-p" goto package\r
17 "echo.exe" "usage: makeos2 [--emx|-e|--gcc|-g|--icc|-i|--oldconf|-o|--test|-t|--package|-p]"\r
18 goto end\r
19 \r
20 :emx\r
21 set COMPILER=gcc-emx\r
22 goto initial\r
23 \r
24 :gcc\r
25 set COMPILER=gcc-os2\r
26 goto initial\r
27 \r
28 :icc\r
29 set COMPILER=icc-os2\r
30 goto initial\r
31 \r
32 :initial\r
33 sh -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
34 goto end\r
35 \r
36 :oldconf\r
37 if not exist ..\src\Headers\local_constants.h copy local_constants.h ..\src\Headers\local_constants.h\r
38 if not exist ..\src\Headers\heral.h copy local_constants.h ..\src\Headers\herald.h\r
39 make -f Makefile.os2 --directory=../src --warn-undefined-variables %2 %3 %4 %5 %6 %7 %8 %9 \r
40 if not exist ..\bin mv ..\src\lclint.exe ..\bin\r
41 if errorlevel 0 mv ..\src\lclint.exe ..\bin\r
42 goto end\r
43 \r
44 :test\r
45 cd ..\test\r
46 echo it's %LARCH_PATH% and %LCLIMPORTDIR%\r
47 make LCLINT=%basedir%\bin\lclint %2 %3 %4 %4 %5 %6 %7 %8 %9 -e -f Makefile-test.os2\r
48 cd ..\os2\r
49 goto end\r
50 \r
51 :package\r
52 cd %basedir%\..\r
53 rm -f lclint-%version%-os2-*.tar*\r
54 tar 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
55 tar cvf lclint-%version%-os2-all.tar lclint-%version%\r
56 cd \export\lclint\r
57 tar cvf %basedir%\..\lclint-%version%-os2-add.tar lclint-%version%\r
58 gzip %basedir%\..\lclint-%version%-os2-*.tar\r
59 goto end\r
60 \r
61 :end\r
62 endlocal\r
This page took 0.0633 seconds and 5 git commands to generate.