home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Genie / Projects / A-line / Scripts / RunMake < prev    next >
Encoding:
Text File  |  2000-06-24  |  705 b   |  34 lines

  1. # RunMake
  2.  
  3. set MAKE "dmake -n"
  4.  
  5. set TEMPDIR ":(Temporary):"
  6. set CMDS "{TEMPDIR}MakeCommands.temp"
  7. If "`Exists -f "{TEMPDIR}"`" != ""
  8.     # There's a file where our directory needs to be -- we're screwed
  9.     Echo "# Please rename or remove the file '{TEMPDIR}'."
  10.     Exit 1
  11. Else If "`Exists -d "{TEMPDIR}"`" == ""
  12.     # Need to make the folder, but be discreet.
  13.     NewFolder "{TEMPDIR}"
  14. End
  15. # Erase the commands file.
  16. Echo -n "" > "{CMDS}"
  17.  
  18. OutToLunch --express
  19.  
  20. {MAKE} {"Parameters"} >> "{CMDS}"
  21.  
  22. #Echo "Running the make commands."
  23. If "`Exists -f "{CMDS}"`" != ""
  24.     #Echo "({CMDS})"
  25.     "{CMDS}"
  26.     Echo "Make complete."
  27.     Delete "{CMDS}"
  28. Else
  29.     Echo "Make command file '{CMDS}' is missing!"
  30.     Exit 1
  31. End
  32.  
  33. Delete -n "{TEMPDIR}"
  34.