home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 November / macformat-018.iso / Utility Spectacular / Developer / Put in (AppleScripts) folder / Recompile README v1.1 < prev    next >
Encoding:
Text File  |  1994-06-16  |  2.8 KB  |  73 lines  |  [TEXT/KAHL]

  1. RePrecompile Readme
  2. 16 June 1994
  3.  
  4. This combination of an AppleScript script and two projects makes it
  5. fairly easy to perform "Step 5" of the 6.0.1 => 7 update for
  6. Symantec C/C++.  That's the "Converting your libraries and headers"
  7. step, which can be found in the README that came along with the
  8. update.
  9.  
  10. Be sure you already have the 6.0.1 headers, not the 6.0 headers.
  11. (Symantec just released a 6.0.0 => 7 updater, and while I haven't
  12. downloaded it, I would guess it probably updates your libraries
  13. to 6.0.1 first, then updates that to 7...?  I don't know.  Follow
  14. the instructions in whatever README you have.)
  15.  
  16.  
  17. Recompiling is pretty simple:
  18.  
  19. * Drop the files "Recompile for 6.0.1 => 7", "RePrecompile π" and 
  20. "RePrecompile++ π" into the "(AppleScripts)" folder.  That's the 
  21. folder you created in Step 3 of the README, remember?  :-)
  22.  
  23. * Double-click the "Recompile for 6.0.1 => 7" script.  The Script
  24. Editor will start up--if it doesn't, get that application.  Do a
  25. Save As, change the kind to "Compiled Script," and save it under
  26. the same name.  (I saved it as text so that those of you without
  27. AppleScript 1.1 could read it.)
  28.  
  29. * Then start up the Think Project Manager so it'll recognize the
  30. new script that's there.
  31.  
  32. * Then select "Recompile for 6.0.1 => 7" from the TPM's script menu.
  33.  
  34. * Then, in the ensuing 25 dialogs that pop up (if you selected C++), 
  35. hit "Convert" 25 times (less if you don't have C++).  Sorry about 
  36. this, but the TPM doesn't provide a way to answer that dialog from 
  37. a script.
  38.  
  39. [Philippe: Actually, you could modify the script to use either a 
  40. QuicKeys 3.0 script that would click the button or use the AutoType
  41. osax to do the typing, but that is not trivially easy, so I left it 
  42. as an exercise for the scripter...]
  43.  
  44. I don't know how well the "RePrecompile π" will work;  it depends
  45. on how smart the TPM is about storing files in projects.  I'm
  46. assuming that it'll be smart enough to find your "Mac #includes.c"
  47. and "Mac #includes.cpp" files.  If I'm wrong, you'll have to open
  48. that project, remove those two files, and then Add them again
  49. (they're in your "Mac #includes" folder).
  50.  
  51. [Philippe: it works pretty well! and the script is now smart enough
  52. to open "RePrecompile π" or "RePrecompile++ π" depending on your 
  53. choice of "C" or "C++".]
  54.  
  55. If you have custom precompiled headers of your own that you'll
  56. want to have precompiled, you can just Add them to "RePrecompile π"
  57. (or "RePrecompile++ π"). The script is smart enough to know where 
  58. the two built-in headers get precompiled to, and it's smart enough 
  59. that it will ask you where your custom precompiled headers go, too.
  60. Then again, maybe it's simpler to just precompile them yourself...?
  61.  
  62. Anyway, if you have any problems, email us.
  63.  
  64. Jamie McCarthy
  65. k044477@kzoo.edu
  66. [First author]
  67.  
  68. Philippe Casgrain
  69. Casgrain@ecol.ucl.ac.be
  70. Casgrain@ere.umontreal.ca
  71. [Additional scripting and text]
  72.  
  73.