7 Commits

Author SHA1 Message Date
Aaron Suen
a8ed60296a Add --fromgit to pull settings from a git repo.
If --fromgit=<url> is specified:
- Shallow-clone the repo.
- Export the tree from the clone.
- Run .cdbrelease.lua hook in the root of the tree.
- Merge any data returned into config.

.cdbrelease.lua can do more-or-less whatever lua allows (e.g.
using dofile, filesystem access, etc.) to figure out the settings
it wants to provide.  This allows it to do things like include
files from mods for shared versioning logic and perform more
complex version number calculations, like NodeCore does.  It could
also be a security risk, so this should be used only on repos that
the user has good control over.

The canonical example is for .cdbrelease.lua to compute its own
version number from stats that get baked into the file by the
export step based on .gitattributes.  Things like defaulting the
pacakge name and author are possible too.

Settings that are already explicitly specified at an earlier step
are ignored from .cdbrelease.lua.
2019-03-31 09:24:16 -04:00
Aaron Suen
4522b3d864 Guard against pure numerical version numbers. 2019-03-30 00:20:41 -04:00
Aaron Suen
057b9f469f Add project icon. 2019-03-29 06:29:48 -04:00
Aaron Suen
4a27cc332b More tracing and checking... 2019-03-29 06:17:05 -04:00
Aaron Suen
56e7f5b75e Document extra options. 2019-02-09 01:11:41 -05:00
Aaron Suen
abf75a0e0c Add a readme. 2019-02-09 00:16:20 -05:00
Aaron Suen
c0e8b94b75 New project. 2019-02-09 00:02:19 -05:00