Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!leah!rpi!batcomputer!cornell!rochester!pt.cs.cmu.edu!andrew.cmu.edu!wb1j+ From: wb1j+@andrew.cmu.edu (William M. Bumgarner) Newsgroups: comp.sys.mac.programmer Subject: Rez v3.0 & MPW shell variables/scripts. Message-ID: Date: 11 Apr 89 02:33:44 GMT Organization: Carnegie Mellon, Pittsburgh, PA Lines: 54 Don't work together.... I have a set of seperately compiled code resources in seperate files. I would like to copy them all to one file... great, no problem, use REZ. It works, BUT in a very ugly fashion. Currently, I use: rez -o CDXSet -t XSTK -c WILD -a -ov < CDXset.r with CDXset.r having an include "file"; for each file that needs to be included So what is the problem? I already have a variable in the make file, {COMPLETE}, that contains a list of the individual code files... CDXset OPTION-F {COMPLETE} rez.... < CDXset.r But the list of {COMPLETE} changes fairly often as I move code resources into, outof or consolidate... I don't really want to have to update both {COMPLETE} and CDXset.r for every code change. So I tried (and didn't expect to work): rez -o CDXSet -t XSTK -c WILD -a -ov < {COMPLETE} in the dependency. Didn't work... fine. include {COMPLETE} fails also... Tried: for x in {COMPLETE} (like UserStartUp) set x external rez -o CDXSet -t XSTK -c WILD -a -ov < CDXset.r end w/CDXset.r containing the line include {x} 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: # rez - File not found (OS error -43), resource file "{MPW}MPW shell" not found. IT DID NOT EVALUATE THE VARIABLE! It looks as if I am stuck with a rather kludgy solution for an annoying problem. I don't really think I'm looking for a solution, just raving a bit... But if anyone has a solution, alternate method, I'm certainly open to suggestions... thanks, b.bum wb1j+@andrew.cmu.edu