qooxdoo/qooxdoo — pull request #18 by sadig (2012-03-07 19:49:28+00:00)
Title: Make generator.py more flexible for automatic builds

Dear Colleagues,

during my work on DC² (http://launchpad.net/dc2) I was in need of a qooxdoo package to build the DC² qooxdoo frontend from source inside a debian sbuild chroot.

This was not trivial, because I think the generator.py is a bit simple.
It checks automatically the config.json file, and even with the -m QOOXDOO_PATH:... switch it takes only the data from config.json.

I adjusted the generate.tmpl.py template to honour an environment variable QOOXDOO_PATH first.
So you can have a shell construct like this:

QOOXDOO_PATH=/whenever/whereever/whatever/ ./generate.py -m QOOXDOO_PATH:/whenever/whereever/whatever

so generate.py can find the real generator script first.

If you are ok, just pull from my repo.

Kind regards,

Stephan Adig

modified: generate.tmpl.py