home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pc3270sa.zip / apps / winaping / winaping.bat < prev    next >
DOS Batch File  |  2002-02-28  |  2KB  |  74 lines

  1. ECHO off
  2. echo.
  3. echo -------------------------------------------------------------------
  4. echo      winaping.exe build file
  5. echo -------------------------------------------------------------------
  6. echo.
  7. REM ----- 12/11/96 ----- changes for 4.2 -----
  8.  
  9. if (%build_opt%) == () goto ERROR2
  10.  
  11. set maknam=piaping
  12. set target=winaping
  13. set ext=exe
  14. set my_path=%pi_root%\apps\winaping
  15. set my_log=%pi_log_nt%\%target%.log
  16. REM ----- per Deuce, send log to pi_log_nt
  17.  
  18. del %my_log%
  19. cd  %my_path%
  20.  
  21. REM ----- check source -----
  22. IF NOT EXIST %my_path%\%maknam%.mak  GOTO ERROR1
  23.  
  24. echo
  25. echo ------ copy include files ---------
  26. copy %pi_incl_32%\wincpic.h
  27.  
  28. echo ------ copy lib files ---------
  29. copy %pi_lib_32%\wcpic32.lib
  30.  
  31. IF %pi_build% == debug    GOTO DBG
  32. IF %pi_build% == release  GOTO REL
  33.  
  34. GOTO ERROR2
  35.  
  36. :DBG
  37.    ECHO --- building %target%.%ext% (%pi_build% %build_opt%)... ---
  38.    if (%build_opt%) == (clean) del windebug\*.obj
  39.    echo nmake -f %maknam%.mak CFG="winaping - Win32 Debug"
  40.    nmake -f %maknam%.mak CFG="winaping - Win32 Debug" > %my_log%
  41.    copy windebug\%target%.%ext% %pi_dbg_32%
  42.    del  windebug\%target%.pch
  43.    show_ver windebug\%target%.%ext% >> %my_log%
  44.    GOTO DONE
  45.  
  46. :REL
  47.    ECHO building %target%.%ext% (%pi_build% %build_opt%) ...
  48.    if (%build_opt%) == (clean) del winrel\*.obj
  49.    IF NOT EXIST winrel\%target%.%ext% mkdir winrel
  50.    echo nmake -f %maknam%.mak CFG="winaping - Win32 Release"
  51.    nmake -f %maknam%.mak CFG="winaping - Win32 Release" > %my_log%
  52.    copy winrel\%target%.%ext% %pi_rel_32%
  53.    del  winrel\%target%.pch
  54.    show_ver winrel\%target%.%ext% >> %my_log%
  55.    GOTO DONE
  56.  
  57. :ERROR1
  58.    ECHO winaping.bat: %maknam%.mak does not exist >> %my_log%
  59.    ECHO winaping.bat: %maknam%.mak does not exist
  60.    GOTO DONE
  61.  
  62. :ERROR2
  63.    ECHO winaping.bat: Incorrect build_opt or pi_build passed >> %my_log%
  64.    ECHO winaping.bat: Incorrect build_opt or pi_build passed
  65.    GOTO DONE
  66.  
  67. :DONE
  68. echo.
  69. echo ---- remove header and lib files -------
  70. del wincpic.h
  71. del wcpic32.lib
  72. cd ..
  73. :END
  74.