Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!Apple.COM!lsr From: lsr@Apple.COM (Larry Rosenstein) Newsgroups: comp.sys.mac.programmer Subject: Re: Rez v3.0 & MPW shell variables/scripts. Message-ID: <1293@internal.Apple.COM> Date: 11 Apr 89 17:53:00 GMT References: Sender: usenet@Apple.COM Organization: Objects-R-Us, Apple Computer, Inc. Lines: 26 In article wb1j+@andrew.cmu.edu (William M. Bumgarner) writes: > after a little experimentation, I discovered that REZ will not evaluate > variables or scripts in the .r files... using include "{MPW}MPW shell"; > doesn't append all resources from the MPW shell, but returns: You need to use the builtin function $$Shell to get the value of a shell variable. For example: #include $$Shell("MPW")"MPW shell"; I think you will have to have some kind of loop to process multiple files. The include directives in Rez won't accept a list of files. One possibility is to keep the list of files in a text file and mechanically generate the CDXset.r file and set the shell variable {COMPLETE} when that file changes. You can add a dependency line to your make file to take care of this, and the shell script for mechanically generating CDXset.r and {COMPLETE} should be pretty simple. Larry Rosenstein, Apple Computer, Inc. Object Specialist Internet: lsr@Apple.com UUCP: {nsc, sun}!apple!lsr AppleLink: Rosenstein1