]> andersk Git - splint.git/blame - os2/makeos2.cmd
Fixed -help <mode> bug.
[splint.git] / os2 / makeos2.cmd
CommitLineData
e5a87a6c 1@echo off\r
2setlocal\r
3934e170 3call setenv.cmd\r
e5a87a6c 4if "%1"=="" goto icc\r
5if "%1"=="--icc" goto icc\r
6if "%1"=="-i" goto icc\r
7if "%1"=="--emx" goto emx\r
8if "%1"=="-e" goto emx\r
9if "%1"=="--gcc" goto gcc\r
10if "%1"=="-g" goto gcc\r
11if "%1"=="--oldconf" goto oldconf\r
12if "%1"=="-o" goto oldconf\r
13if "%1"=="--test" goto test\r
14if "%1"=="-t" goto test\r
15if "%1"=="--package" goto package\r
16if "%1"=="-p" goto package\r
17"echo.exe" "usage: makeos2 [--emx|-e|--gcc|-g|--icc|-i|--oldconf|-o|--test|-t|--package|-p]"\r
18goto end\r
19\r
20:emx\r
21set COMPILER=gcc-emx\r
22goto initial\r
23\r
24:gcc\r
25set COMPILER=gcc-os2\r
26goto initial\r
27\r
28:icc\r
29set COMPILER=icc-os2\r
30goto initial\r
31\r
32:initial\r
87fa79e5 33make -f Makefile.os2 confclean\r
34make -e -f Makefile.os2 %2 %3 %4 %5 %6 %7 %8 %9\r
e5a87a6c 35goto end\r
36\r
37:oldconf\r
38make -f Makefile.os2 --directory=../src --warn-undefined-variables %2 %3 %4 %5 %6 %7 %8 %9 \r
36250f22 39make -f Makefile.os2 --directory=../lib --warn-undefined-variables %2 %3 %4 %5 %6 %7 %8 %9 \r
e5a87a6c 40goto end\r
41\r
42:test\r
e5a87a6c 43cd ..\test\r
44echo it's %LARCH_PATH% and %LCLIMPORTDIR%\r
87fa79e5 45make LCLINT=%basedir%\bin\splint %2 %3 %4 %4 %5 %6 %7 %8 %9 -e -f Makefile.os2\r
e5a87a6c 46cd ..\os2\r
47goto end\r
48\r
49:package\r
3934e170 50cd %basedir%\..\r
87fa79e5 51rm -f splint-%version%-os2-*.tar*\r
52tar cvf splint-%version%-os2-bin.tar splint-%version%\bin splint-%version%\imports splint-%version%\lib splint-%version%\os2 splint-%version%\test splint-%version%\LICENSE splint-%version%\README\r
53tar cvf splint-%version%-os2-all.tar splint-%version%\r
54cd \export\splint\r
55tar cvf %basedir%\..\splint-%version%-os2-add.tar splint-%version%\r
56gzip %basedir%\..\splint-%version%-os2-*.tar\r
e5a87a6c 57goto end\r
58\r
59:end\r
60endlocal\r
This page took 0.079422 seconds and 5 git commands to generate.