home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / adaptor / makeadap.cmd < prev    next >
OS/2 REXX Batch file  |  1994-01-03  |  1KB  |  59 lines

  1. @echo off
  2. if "%1"=="" goto usage
  3. :jump
  4. echo %1
  5. goto %1
  6.  
  7. :usage
  8. echo Usage: makeadap PART
  9. echo PART:
  10. echo   src              - fadapt.exe, fstrip.exe
  11. echo   dalib            - dalib.a, unilib.a, mhost.o ..
  12. echo   clean            - cleans all leftovers from build
  13. echo Shortcuts:
  14. echo   all (both of the actions - except for clean)
  15. goto end
  16.  
  17. :all
  18. call makeadap src dalib
  19. goto next
  20.  
  21. :src
  22. cd src
  23. dmake -f makefile.os2
  24. echo Moving fadapt.exe to ..\bin
  25. mv fadapt.exe ..\bin
  26. echo Moving fstrip.exe to ..\bin
  27. mv fstrip.exe ..\bin
  28. cd ..
  29. goto next
  30.  
  31. :dalib
  32. cd dalib
  33. cd pvm3
  34. dmake -f makefile.os2
  35. echo Dalib.a and unilib.a, mhost.o, mnode.o, mnode1.o and mcube.o
  36. echo are being moved to adaptor\lib directory
  37. echo Don't forget to define environmental variables DALIB and PVM_ROOT !
  38. mv dalib.a ..\..\lib
  39. mv unilib.a ..\..\lib
  40. mv mhost.o mnode.o mnode1.o mcube.o ..\..\lib
  41. cd ..\..
  42. goto next
  43.  
  44. :clean
  45. cd src
  46. dmake -f makefile.os2 clean
  47. cd ..
  48. cd dalib
  49. cd pvm3
  50. dmake -f makefile.os2 clean
  51. cd ..\..
  52. echo  Cleaning is done
  53. goto next
  54.  
  55. :next
  56. shift
  57. if not "%1" == "" goto jump
  58. :end
  59.