under unix there is one 'crazy' way to make single executable:

1. put all required scripts (including standard library) into single directory D
2. create a startup script and put it into directory D too
3. make image of one of available file systems (fat/ext/etc) and fill it with content of directory D 4. make 'executable binary' script as combination of 2 parts: header and tail.

tail is a image of directory D

header is a shell script which doing 3 things:

1 - mount tail (skip header in 'executable binary' and mount rest)
2 - run startup script in mounted FS image
3 - unmount tail after startup script ends

:-)

--
Yuri Burger,
Senior Researcher
Kiev Zoral Development Center

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to