home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Tools / Mac / FWSetBuildPaths < prev    next >
Encoding:
Text File  |  1996-09-17  |  2.0 KB  |  56 lines  |  [TEXT/MPS ]

  1. #========================================================================================
  2. #
  3. #    File:                FWSetBuildPaths
  4. #    Release Version:    $ ODF 2 $
  5. #
  6. #    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. #
  8. #========================================================================================
  9.  
  10.  
  11. #-----------------------------------------------------------------------
  12. #    Location of the current build environment.
  13. #-----------------------------------------------------------------------
  14. Set FWBldEnvDir `Directory`
  15. Export FWBldEnvDir
  16.  
  17. #-----------------------------------------------------------------------
  18. #    Location to put libraries.
  19. #-----------------------------------------------------------------------
  20. Set FWLibDir "{FWBldEnvDir}Lib:"
  21. Export FWLibDir
  22.  
  23. #-----------------------------------------------------------------------
  24. #    Location to put built parts.
  25. #    (Assumed to be in the default directory.)
  26. #-----------------------------------------------------------------------
  27. Set FWBinDir ":Bin:"
  28. Export FWBinDir
  29.  
  30. #-----------------------------------------------------------------------
  31. #    Location to put objects.
  32. #    (Assumed to be in the default directory.)
  33. #-----------------------------------------------------------------------
  34. Set FWObjDir ":Obj:"
  35. Export FWObjDir
  36.  
  37. #-----------------------------------------------------------------------
  38. #    Location to put Precompiled headers.
  39. #    (If not specified then assume they are in the current build 
  40. #     environment in a folder named: "Precompile Headers:". [sfu])
  41. #-----------------------------------------------------------------------
  42. if ¬ "{FWPreCompHdrDir}"
  43.     Set FWPreCompHdrDir "{FWBldEnvDir}Precompile∂ Headers:"
  44.     Export FWPreCompHdrDir
  45. End
  46.  
  47. #-----------------------------------------------------------------------
  48. #    Check to make sure they exist before we continue.
  49. #-----------------------------------------------------------------------
  50.  
  51. If ¬ `Exists "{FWBldEnvDir}"`
  52.     Echo "FWSetBuildPaths: Can not find the build environment directory: {FWBldEnvDir}"
  53.     Exit 1
  54. End
  55.  
  56.