On Sep 26, 2012, at 2:09 AM, Josh Juran wrote:
> I've extended MacRelix's virtual filesystem code to recognize
> binaries and scripts embedded in the MacRelix application's
> resource fork.
>
> Expect to see this in a few days or so.
The latest MacRelix snapshot has this. Also, resource filenames
(e.g. foo.rsrc/r/0080.TEXT) no longer contain the resource name.
Instead, the resource name is modeled as "$resource/name",
analogously to "$file/rsrc" for the resource fork.
Reading "name" appends a newline, and writing it will strip one (or
fail if it's missing), for compatibility with cat and echo from the
shell. The variant ".~name" will be a pure binary file but hasn't
been added yet. A known error is that UTF-8 text written to a
resource name file is not converted to MacRoman (nor the reverse), I
will fix this soon, and also ".mac-name" and ".~mac-name" which will
not convert character encodings, on the assumption that you're
supplying and expecting MacRoman directly.
exe=""
test "$HOSTTYPE" == m68k && exe=/r/0000.Wish
cp /sys/app/dir/MacRelix /tmp
cd /tmp/MacRelix/r
cat /bin/cat$exe > 0080.Exec
echo /bin/cat > 0080.Exec/name
...
cat /bin/true$exe > 009F.Exec
echo /bin/true > 009F.Exec/name
Share and enjoy!
Josh