OZ doesn't have bash installed... "sh" is the built in busybox shell. It uses a slightly different syntax for defining functions in scripts.
Just replace "function mlink {... }" with "mlink { ... }" (i.e. just get rid of the word "function" in front of it).
did that and now it does seem to be working (very preliminary check though). I also change the DEVELOP variable to /root/develop (OZ doesn't have /home/Zaurus/develop).
I pointed the 'echo "export PATH=\$PATH:$2/bin">>/home/Zaurus/.profile' to 'echo "export PATH=\$PATH:$2/bin">>/ect/profile'
and took out the other export line.
I also stopped the script from running the compiler setup script, so I could modify it.
I took out the 'function' labels before the functions, and it seemed to work.
I've not done anything yet, but perl responds and I'm going to try a compile soon
sl-5500 OZ 3.3.5