]> andersk Git - splint.git/blame - os2/makeos2.cmd
Some work on the files in os2/, removed unnecessary
[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
33sh -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
34goto end\r
35\r
36:oldconf\r
3934e170 37if not exist ..\src\Headers\local_constants.h copy local_constants.h ..\src\Headers\local_constants.h\r
38if not exist ..\src\Headers\heral.h copy local_constants.h ..\src\Headers\herald.h\r
e5a87a6c 39make -f Makefile.os2 --directory=../src --warn-undefined-variables %2 %3 %4 %5 %6 %7 %8 %9 \r
3934e170 40if not exist ..\bin mv ..\src\lclint.exe ..\bin\r
e5a87a6c 41if errorlevel 0 mv ..\src\lclint.exe ..\bin\r
42goto end\r
43\r
44:test\r
e5a87a6c 45cd ..\test\r
46echo it's %LARCH_PATH% and %LCLIMPORTDIR%\r
3934e170 47make LCLINT=%basedir%\bin\lclint %2 %3 %4 %4 %5 %6 %7 %8 %9 -e -f Makefile-test.os2\r
e5a87a6c 48cd ..\os2\r
49goto end\r
50\r
51:package\r
3934e170 52cd %basedir%\..\r
e5a87a6c 53rm -f lclint-%version%-os2-*.tar*\r
54tar 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
55tar cvf lclint-%version%-os2-all.tar lclint-%version%\r
56cd \export\lclint\r
3934e170 57tar cvf %basedir%\..\lclint-%version%-os2-add.tar lclint-%version%\r
58gzip %basedir%\..\lclint-%version%-os2-*.tar\r
e5a87a6c 59goto end\r
60\r
61:end\r
62endlocal\r
This page took 0.059037 seconds and 5 git commands to generate.