I think this document should answer many of your questions: http://www.mewburn.net/luke/papers/build.sh.pdf Regards, Dave