]> andersk Git - splint.git/blobdiff - os2/makeos2.cmd
Changes for the OS/2 port: cpplib.c (fixed cstring_replaceAll()
[splint.git] / os2 / makeos2.cmd
diff --git a/os2/makeos2.cmd b/os2/makeos2.cmd
new file mode 100755 (executable)
index 0000000..29fde7c
--- /dev/null
@@ -0,0 +1,62 @@
+@echo off\r
+setlocal\r
+set version=3.0.0.16\r
+set base=e:\usr\src\lclint-%version%\r
+if "%1"=="" goto icc\r
+if "%1"=="--icc" goto icc\r
+if "%1"=="-i" goto icc\r
+if "%1"=="--emx" goto emx\r
+if "%1"=="-e" goto emx\r
+if "%1"=="--gcc" goto gcc\r
+if "%1"=="-g" goto gcc\r
+if "%1"=="--oldconf" goto oldconf\r
+if "%1"=="-o" goto oldconf\r
+if "%1"=="--test" goto test\r
+if "%1"=="-t" goto test\r
+if "%1"=="--package" goto package\r
+if "%1"=="-p" goto package\r
+"echo.exe" "usage: makeos2 [--emx|-e|--gcc|-g|--icc|-i|--oldconf|-o|--test|-t|--package|-p]"\r
+goto end\r
+\r
+:emx\r
+set COMPILER=gcc-emx\r
+goto initial\r
+\r
+:gcc\r
+set COMPILER=gcc-os2\r
+goto initial\r
+\r
+:icc\r
+set COMPILER=icc-os2\r
+goto initial\r
+\r
+:initial\r
+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
+goto end\r
+\r
+:oldconf\r
+make -f Makefile.os2 --directory=../src --warn-undefined-variables %2 %3 %4 %5 %6 %7 %8 %9 \r
+if errorlevel 0 mv ..\src\lclint.exe ..\bin\r
+goto end\r
+\r
+:test\r
+set LARCH_PATH=%base%\lib\r
+set LCLIMPORTDIR=%base%\imports\r
+cd ..\test\r
+echo it's %LARCH_PATH% and %LCLIMPORTDIR%\r
+make LCLINT=%base%\bin\lclint %2 -e -f Makefile-test.os2\r
+cd ..\os2\r
+goto end\r
+\r
+:package\r
+cd %base%\..\r
+rm -f lclint-%version%-os2-*.tar*\r
+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
+tar cvf lclint-%version%-os2-all.tar lclint-%version%\r
+cd \export\lclint\r
+tar cvf %base%\..\lclint-%version%-os2-add.tar lclint-%version%\r
+gzip %base%\..\lclint-%version%-os2-*.tar\r
+goto end\r
+\r
+:end\r
+endlocal\r
This page took 0.030234 seconds and 4 git commands to generate.