hawleyw asked: Is there a way to change the default copyright notice that sc-gen puts in the generated .js files?
Its painful, and will probably take longer to fix on the generator side than it would to just find & replace in BBEdit or textmate, but here is what you’d do.
- Download Sproutcore abbot
- Head to the file you wanted to modify in the “gen” directory
- /abbot/gen/app/templates/apps/@target_name@
- nano core.js
- Modify the header file
- Ctrl +X, Y, Enter (Exit & Save)
- Now when you sc-gen a new app, the core.js header file should reflect your changes.
Yes, unfortunately it looks like you’d have to do it for each file and each generator. The above example just modifies the output for a new app and just core.js. You also have to use the abbot generator, so you’d have to do /abbot/bin/sc-gen, as your local sc-gen probably doesn’t map to abbots.
Thanks to Alex for the direction on solving this