home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Amiga / Applications / Mathematiques / Kurve.lha / Kurve / compile.ced next >
Text File  |  1992-12-06  |  1KB  |  47 lines

  1. /*  Rexx - Ced make c-file                           */
  2. /*  this small rexx program compiles your project    */
  3. /*  place the name of the makefile in the first line */
  4. /*  of your source code and start this program       */
  5. /*  it saves all changed files and then calls your   */
  6. /*  specific makefile                                */
  7. /*  sorry -> no error handling                       */
  8.  
  9. /* (c) by Henning Rink  91                           */
  10.  
  11. /* projectmake */
  12. /*^^^^^^^^^^^^^^^*/
  13. /* this is how your first line should look like */
  14.  
  15.  
  16. OPTIONS Results
  17.  
  18. Save all changes
  19.  
  20. status 46
  21. cx = Result+1
  22.  
  23. status 47
  24. cy = Result+1
  25.  
  26.  
  27. Beg of file
  28.  
  29. status 55
  30. line = Result
  31.  
  32. Jumpto cy cx
  33.  
  34. makefilename = strip(substr(line,3,length(line)-5))
  35.  
  36. /* changed from simple shell command "make -f " makefile   */
  37. /* this Version is better but not perfect   28.12.1991     */
  38.  
  39.  open('comfile','ram:startCC','W')
  40.  writeln('comfile','stack 10000')
  41.  writeln('comfile','make -f '||makefilename)
  42.  writeln('comfile','endshell')
  43.  close('comfile')
  44.  shell command "newshell con:10/10/640/250/Compile   ram:startCC"
  45.  
  46. /* ENDE */
  47.