13 Commits

Author SHA1 Message Date
Aaron Suen
d15799f6a9 Add CDB details sync support.
- Automatically load detail edits from meta JSON, allowing release
  of new descriptions to sync with release of package versions.
- Load long description from external markdown file.
- Automatically calculate provides/depends info if needed.
2020-03-27 17:12:38 -04:00
Aaron Suen
9948a55f69 Docker config, add a TODO file. 2019-11-02 12:43:26 -04:00
Aaron Suen
6e9ff0ca1d Remove debugging code. 2019-08-14 00:48:12 -04:00
Aaron Suen
815eec04e6 Bugfixes, add config file. 2019-08-13 23:07:02 -04:00
Aaron Suen
fc8289c8ac Document new --fromgit option. 2019-03-31 10:05:16 -04:00
Aaron Suen
1f0ae91cf3 New layered config system.
This allows --fromgit to override built-in defaults (e.g. setting
min/max MT version) but not explicit cmdline settings.
2019-03-31 09:47:16 -04:00
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