home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Graphics / Commander / CompileModules.rexx < prev    next >
Encoding:
OS/2 REXX Batch file  |  2000-03-25  |  586 b   |  31 lines

  1. /*
  2.  
  3.     CompileModules.rexx
  4.  
  5.     $VER: 25 Mar 2000
  6.  
  7. */
  8.  
  9. options results
  10. address command
  11.  
  12. Path.def = "definitions/"
  13. Path.module = "modules/"
  14. Compiler = "Compiler"
  15. ErrorLog = "RAM:Compiler.errors"
  16.  
  17. if exists(ErrorLog) then 'C:Delete' ErrorLog" QUIET"
  18. 'C:List' Path.def 'PAT "#?.def" ALL FILES LFORMAT "%s%s" TO T:Compiles'
  19.  
  20. call open('Compiles', "T:Compiles")
  21. do until eof('Compiles')
  22.     cFile = readln('Compiles'); if cFile = "" then leave
  23.     cFile = delstr(cFile,1,length(Path.def))
  24.  
  25.     Compiler "Definition="cFile" ErrorLog="ErrorLog
  26. end
  27. call close('Compiles')
  28.  
  29. 'C:Delete' "T:Compiles QUIET"
  30. exit
  31.