This page is not working currently and also not so relevant anymore. I will post the Script I used here when I find time.
For now have a look at Cloning a module which exists since OpenCms 9.0.1.
With this generator you can create your own templates for development based on the demo-templates. ...