[Github-comments] [geany] New License Templates (#752)

elextr notifications at xxxxx
Thu Nov 12 05:11:01 UTC 2015


> @elextr , I am sure a for-loop could be used to generate a template at compile-time. I have not tried templating in C. However, in Python3, developers can create a list (special Python array) containing the license names. Then, the for-loop would dynamically generate the needed code. Perhaps, something like this can be done in C/C++ so that Geany developers can just add the license file and an array-entry.

As @codebrainz has already said, the "best" way of doing this is for the menu to be constructed from the files in the system and user `data/templates` directories.

As I have said before, the file creation templates work this way, the menu is populated from the files in `data/templates/files` and the user `config/templates/files` directories so that means there is some existing code for you to re-use if you want to try this.

> @codebrainz , so my name will be added (via a script)? Will my name be in the "Credits"? Would you like me to manually update the "Credits"?

See my comment elsewhere about this.  Unless @b4n contradicts me I don't think we actually have a published process for updating credits.  Maybe now is the time to automate it since the contributors list hasn't been updated since Matthew Brush was added in Jan 2011, and I find it hard to believe there have been no new contributors since then.


---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/752#issuecomment-156000547
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20151111/cdcdc98e/attachment.html>


More information about the Github-comments mailing list