home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / the25.zip / thesrc251.zip / makedist.cmd < prev    next >
OS/2 REXX Batch file  |  1998-07-21  |  1KB  |  58 lines

  1. /* 
  2.  * Make a distribution of THE
  3.  * Required for those platforms that use GNU make:
  4.  *   DOSDJP
  5.  *   OS2EMX - Regina
  6.  *   DOSEMX
  7.  */
  8. Parse Arg ver verdot platform src reg
  9. If ver = '' Then Call usage
  10. 'mkdir tmp'
  11. 'cd tmp'
  12. 'del /Y *.*'
  13. 'copy ..\the.exe .'
  14. 'copy' src || '\THE_Help.txt .'
  15. 'copy' src || '\demo.txt .'
  16. 'copy' src || '\*.the .'
  17. 'copy' src || '\COPYING .'
  18. 'copy' src || '\HISTORY .'
  19. 'copy' src || '\TODO .'
  20. 'copy' src || '\README .'
  21. select
  22.   when platform = 'DOSDJG' then do
  23.        if reg = '' then call usage
  24.        'copy' src || '\dosgo32.diz file_id.diz'
  25.        'copy' reg || '\go32.exe .'
  26.        int = ''
  27.        suffix = 'djg'
  28.        end
  29.   when platform = 'DOSEMX' then do
  30.        if src = '' then call usage
  31.        'copy' src || '\dosvcpi.diz file_id.diz'
  32.        int = ''
  33.        suffix = 'vcp'
  34.        end
  35.   when platform = 'OS2EMX' then do
  36.        if reg = '' then call usage
  37.        'copy' src || '\os2.diz file_id.diz'
  38.        'copy' reg || '\regina.dll .'
  39.        int = 'R'
  40.        suffix = '_os2'
  41.        end
  42.    otherwise call usage
  43. end
  44. 'f:\usr\bin\the -b -p' src || '\fix.diz -a "' || ver verdot int 'Regina" file_id.diz'
  45. 'zip the' || ver || int || suffix '*'
  46. 'cd ..'
  47. Return
  48.  
  49. usage:
  50. Say 'makedist version versiondot platform src reg'
  51. Say 'where:'
  52. Say '      version    - 25'
  53. Say '      versiondot - 2.5'
  54. Say '      platform   - one of DOSDJG DOSEMX OS2EMX'
  55. Say '      src        - source of THE'
  56. Say '      reg        - directory where regina.dll or go32.exe is'
  57. Exit 1
  58.