home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / smart21b.zip / MACROS / MAKENDX.REX < prev    next >
OS/2 REXX Batch file  |  1992-08-16  |  931b  |  26 lines

  1. /* Grep Find */
  2. 'S_CLEAR_MACRO_OUTPUT'
  3. 'S_PROMPT INF file, args'
  4. IF rc \= 0 THEN EXIT
  5. IF args = "" THEN EXIT
  6. infstring = 'c:\ndxbld\ndxs\' || args || '.ind'
  7. infstring3 = 'c:\ndxbld\ndxs\' || args || '.inx'
  8. infstring2 = args || '.inf'
  9. 'c:\ndxbld\ndxbld.exe' infstring2 infstring infstring3
  10. infstring4 = 'c:\ndxbld\ndxs\' || args || '.con'
  11. infstring5 = 'c:\ndxbld\ndxs\' || args || '.cox'
  12. infstring6 = 'c:\ndxbld\ndxs\' || args || '.nd0'
  13. infstring7 = 'c:\ndxbld\ndxs\' || args || '.ndx'
  14. 'c:\ndxbld\ndxbld.exe' infstring2 infstring4 infstring5
  15. 'copy' infstring3|| '+' ||infstring5 ' ' infstring6
  16. 'sort <' infstring6 '>' infstring7
  17. 'C:\ndxbld\ndxdup\ndxdup.exe' infstring7
  18. infstring8 = 'c:\ndxbld\ndxs\' || args || '.nd_'
  19. 'copy' infstring8 ' ' infstring7
  20. 'del' infstring3 
  21. 'del' infstring5 
  22. 'del' infstring6 
  23. 'del' infstring8 
  24. 'copy ' infstring7 'C:\ndxbld\ndxfinal\*.*'
  25. 'c:\slink2\SLSTART.exe' ' ' infstring7
  26.