]>
Commit | Line | Data |
---|---|---|
e5a87a6c | 1 | @echo off\r |
2 | setlocal\r | |
3934e170 | 3 | call setenv.cmd\r |
feba098c | 4 | if "%1"=="" goto compile\r |
5 | if "%1"=="-c" goto compile\r | |
6 | if "%1"=="--compile" goto compile\r | |
e5a87a6c | 7 | if "%1"=="--test" goto test\r |
8 | if "%1"=="-t" goto test\r | |
9 | if "%1"=="--package" goto package\r | |
10 | if "%1"=="-p" goto package\r | |
feba098c | 11 | "echo.exe" "usage: makeos2 [--compile|-c|--test|-t|--package|-p]"\r |
e5a87a6c | 12 | goto end\r |
13 | \r | |
feba098c | 14 | :compile\r |
15 | make -C ../src -e -f Makefile.os2 %2 %3 %4 %5 %6 %7 %8 %9\r | |
e5a87a6c | 16 | goto end\r |
17 | \r | |
18 | :test\r | |
e5a87a6c | 19 | cd ..\test\r |
20 | echo it's %LARCH_PATH% and %LCLIMPORTDIR%\r | |
feba098c | 21 | make SPLINT=%basedir%\bin\splint.exe %2 %3 %4 %4 %5 %6 %7 %8 %9 -e -f Makefile.os2\r |
e5a87a6c | 22 | cd ..\os2\r |
23 | goto end\r | |
24 | \r | |
25 | :package\r | |
3934e170 | 26 | cd %basedir%\..\r |
87fa79e5 | 27 | rm -f splint-%version%-os2-*.tar*\r |
28 | 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 | |
29 | tar cvf splint-%version%-os2-all.tar splint-%version%\r | |
30 | cd \export\splint\r | |
31 | tar cvf %basedir%\..\splint-%version%-os2-add.tar splint-%version%\r | |
32 | gzip %basedir%\..\splint-%version%-os2-*.tar\r | |
e5a87a6c | 33 | goto end\r |
34 | \r | |
35 | :end\r | |
36 | endlocal\r |