[comp.sys.mac.programmer] Solution to REZ & MPW 3.0 shell variables

wb1j+@andrew.cmu.edu (William M. Bumgarner) (04/11/89)

I finally found a clean, but kludgy way to specify multiple resource
files as includes for rez....

This be it:

CDXset D {COMPLETE}
    Delete -i CDXset(temp).r
    For __fs__i in {COMPLETE}
        echo "include 6"{__fs__i}6";" >> CDXset.r
    End
    Unset __fs__i
    rez -o CDXSet -t XSTK -c WILD -a -ov < CDXset.r
    Delete -i CDXset(temp).r

D=option F where appropriate
6=option D where appropriate

Kind of annoying... but a decent logic puzzle never the less.

b.bum
wb1j+@andrew.cmu.edu

wb1j+@andrew.cmu.edu (William M. Bumgarner) (04/12/89)

Just discovered another solution-- pipe the command to rez.

echo constructed-foo | rez {options}

this eliminates the need for the temparary text file...

b.bum
wb1j+@andrew.cmu.edu