]> andersk Git - splint.git/blobdiff - os2/makeos2.cmd
Fixed the OS/2 specific files for the latest release.
[splint.git] / os2 / makeos2.cmd
index 6a8708c9994b999baecd8a6bd93a05d8d6766dee..4413950f82e83ab361455e87ae3b5d96dd624e94 100755 (executable)
@@ -1,63 +1,35 @@
 @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
+call setenv.cmd\r
+if "%1"=="" goto compile\r
+if "%1"=="-c" goto compile\r
+if "%1"=="--compile" goto compile\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
+"echo.exe" "usage: makeos2 [--compile|-c|--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
-if not exist %base%\src\Headers\local_constants.h copy local_constants.h %base%\src\Headers\local_constants.h\r
-if not exist %base%\src\Headers\heral.h copy local_constants.h %base%\src\Headers\herald.h\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
+:compile\r
+make -C ../src -e -f Makefile.os2 %2 %3 %4 %5 %6 %7 %8 %9\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
+make SPLINT=%basedir%\bin\splint.exe %2 %3 %4 %4 %5 %6 %7 %8 %9 -e -f Makefile.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
+cd %basedir%\..\r
+rm -f splint-%version%-os2-*.tar*\r
+tar 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
+tar cvf splint-%version%-os2-all.tar splint-%version%\r
+cd \export\splint\r
+tar cvf %basedir%\..\splint-%version%-os2-add.tar splint-%version%\r
+gzip %basedir%\..\splint-%version%-os2-*.tar\r
 goto end\r
 \r
 :end\r
This page took 0.23728 seconds and 4 git commands to generate.