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
21 set COMPILER=gcc-emx
\r
25 set COMPILER=gcc-os2
\r
29 set COMPILER=icc-os2
\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
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
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
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
57 tar cvf %basedir%\..\lclint-%version%-os2-add.tar lclint-%version%
\r
58 gzip %basedir%\..\lclint-%version%-os2-*.tar
\r