]> git.pond.sub.org Git - empserver/commit
config: Make product work independently configurable
authorMarkus Armbruster <armbru@pond.sub.org>
Thu, 7 Jan 2021 06:14:27 +0000 (07:14 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 17 Jan 2021 20:24:29 +0000 (21:24 +0100)
commit9b84153038021c8d067d33299fa0e4b50fad5de0
tree5eccfda290b14d5fd83505c4c882205a9101d041
parentd7a9593f353007db1001106f5367cf047f14b986
config: Make product work independently configurable

The work required for a product is traditionally the amount of raw
materials, plus 1 for resource usage, or 1 if using neither.  Make it
independently configurable instead, via new product selector bwork,
backed by new struct pchrstr member p_bwork.  Keep the required work
exactly the same in the default configuration.

Clients that compute work from materials need to be updated.  Easy,
since build work is now exposed in xdump.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
include/product.h
src/lib/common/nsc.c
src/lib/global/product.config
src/lib/subs/show.c
src/lib/update/produce.c
tests/empdump/errors.err
tests/empdump/xundump-errors/colhdr-miss
tests/empdump/xundump-errors/colhdr-miss2
tests/empdump/xundump-errors/fld-unksym
tests/version/journal.log