]> andersk Git - splint.git/blame - os2/makeos2.cmd
Fixed problems with DOS file format.
[splint.git] / os2 / makeos2.cmd
CommitLineData
fbace05a 1@echo off\r
2setlocal\r
3set version=3.0.0.16\r
4set base=e:\usr\src\lclint-%version%\r
5if "%1"=="" goto icc\r
6if "%1"=="--icc" goto icc\r
7if "%1"=="-i" goto icc\r
8if "%1"=="--emx" goto emx\r
9if "%1"=="-e" goto emx\r
10if "%1"=="--gcc" goto gcc\r
11if "%1"=="-g" goto gcc\r
12if "%1"=="--oldconf" goto oldconf\r
13if "%1"=="-o" goto oldconf\r
14if "%1"=="--test" goto test\r
15if "%1"=="-t" goto test\r
16if "%1"=="--package" goto package\r
17if "%1"=="-p" goto package\r
18"echo.exe" "usage: makeos2 [--emx|-e|--gcc|-g|--icc|-i|--oldconf|-o|--test|-t|--package|-p]"\r
19goto end\r
20\r
21:emx\r
22set COMPILER=gcc-emx\r
23goto initial\r
24\r
25:gcc\r
26set COMPILER=gcc-os2\r
27goto initial\r
28\r
29:icc\r
30set COMPILER=icc-os2\r
31goto initial\r
32\r
33:initial\r
34sh -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
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
39if errorlevel 0 mv ..\src\lclint.exe ..\bin\r
40goto end\r
41\r
42:test\r
43set LARCH_PATH=%base%\lib\r
44set LCLIMPORTDIR=%base%\imports\r
45cd ..\test\r
46echo it's %LARCH_PATH% and %LCLIMPORTDIR%\r
47make LCLINT=%base%\bin\lclint %2 -e -f Makefile-test.os2\r
48cd ..\os2\r
49goto end\r
50\r
51:package\r
52cd %base%\..\r
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
57tar cvf %base%\..\lclint-%version%-os2-add.tar lclint-%version%\r
58gzip %base%\..\lclint-%version%-os2-*.tar\r
59goto end\r
60\r
61:end\r
62endlocal\r
This page took 0.064569 seconds and 5 git commands to generate.