Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!apple!han From: han@Apple.COM (Byron Han, wyl E. coyote ) Newsgroups: comp.sys.mac.programmer Subject: Re: Copying resources from within MPW shell Message-ID: <28710@apple.Apple.COM> Date: 10 Apr 89 15:07:18 GMT References: Organization: Apple R&D - Networking & Communications Lines: 31 In article wb1j+@andrew.cmu.edu (William M. Bumgarner) writes: >I have a set of freshly compiled/linked XFCN's in independent resource files. >I would like to automatically consilidate them into one file... > >I have tried: rez -a file.out < resource.1 resource.2 ... > In your makefile... targetfile FF Makefile resource.1 echo 'INCLUDE "resource.1";' | Rez -append -o targetfile where F is option F. I have noticed that Rez sometimes chokes when you specify -append and the file does not already exist so I use... targetfile FF Makefile resource.1 if "`exists -q -f "targetfile"`" == "targetfile" echo 'INCLUDE "resource.1";' | Rez -append -o targetfile else echo 'INCLUDE "resource.1";' | Rez -o targetfile end +-----------------------------------------------------------------------------+ | Disclaimer: Apple has no connection with my postings. | +-----------------------------------------------------------------------------+ Byron Han, Communications Architect Cereal, anyone? :-) A1! Apple Computer, Inc. ------------------------------------- 20525 Mariani Ave, MS27Y Internet: han@apple.COM Cupertino, CA 95014 UUCP:{sun,voder,nsc,decwrl}!apple!han -------------------------------------- GENIE: BYRONHAN ATTnet: 408-974-6450 Applelink: HAN1 CompuServe: 72167,1664 ------------------------------------------------------------------------------