home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / splint3s.zip / splint-3.0.1.6 / os2 / makeos2.cmd < prev    next >
OS/2 REXX Batch file  |  2002-02-17  |  1KB  |  60 lines

  1. @echo off
  2. setlocal
  3. call setenv.cmd
  4. if "%1"=="" goto icc
  5. if "%1"=="--icc" goto icc
  6. if "%1"=="-i" goto icc
  7. if "%1"=="--emx" goto emx
  8. if "%1"=="-e" goto emx
  9. if "%1"=="--gcc" goto gcc
  10. if "%1"=="-g" goto gcc
  11. if "%1"=="--oldconf" goto oldconf
  12. if "%1"=="-o" goto oldconf
  13. if "%1"=="--test" goto test
  14. if "%1"=="-t" goto test
  15. if "%1"=="--package" goto package
  16. if "%1"=="-p" goto package
  17. "echo.exe" "usage: makeos2 [--emx|-e|--gcc|-g|--icc|-i|--oldconf|-o|--test|-t|--package|-p]"
  18. goto end
  19.  
  20. :emx
  21. set COMPILER=gcc-emx
  22. goto initial
  23.  
  24. :gcc
  25. set COMPILER=gcc-os2
  26. goto initial
  27.  
  28. :icc
  29. set COMPILER=icc-os2
  30. goto initial
  31.  
  32. :initial
  33. make -f Makefile.os2 confclean
  34. make -e -f Makefile.os2 %2 %3 %4 %5 %6 %7 %8 %9
  35. goto end
  36.  
  37. :oldconf
  38. make -f Makefile.os2 --directory=../src --warn-undefined-variables %2 %3 %4 %5 %6 %7 %8 %9 
  39. goto end
  40.  
  41. :test
  42. cd ..\test
  43. echo it's %LARCH_PATH% and %LCLIMPORTDIR%
  44. make LCLINT=%basedir%\bin\splint %2 %3 %4 %4 %5 %6 %7 %8 %9 -e -f Makefile.os2
  45. cd ..\os2
  46. goto end
  47.  
  48. :package
  49. cd %basedir%\..
  50. rm -f splint-%version%-os2-*.tar*
  51. 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
  52. tar cvf splint-%version%-os2-all.tar splint-%version%
  53. cd \export\splint
  54. tar cvf %basedir%\..\splint-%version%-os2-add.tar splint-%version%
  55. gzip %basedir%\..\splint-%version%-os2-*.tar
  56. goto end
  57.  
  58. :end
  59. endlocal
  60.