;examples: debconf: make check-*

This commit is contained in:
Simon Michael 2026-01-09 11:58:12 -10:00
parent f4e642093d
commit a0c8004147
2 changed files with 15 additions and 5 deletions

View File

@ -18,3 +18,8 @@ all: \
dc%: dc%:
git clone --filter=blob:none --sparse http://salsa.debian.org/debconf-team/public/data/$@ git clone --filter=blob:none --sparse http://salsa.debian.org/debconf-team/public/data/$@
git -C $@ sparse-checkout set --no-cone budget '!budget/invoices' git -C $@ sparse-checkout set --no-cone budget '!budget/invoices'
# make check-ledger, check-hledger - check readability
check-%:
@for d in dc*; do printf "$$d: "; ledger -f $$d/budget/journal.ledger stats >/dev/null && echo ok; done

View File

@ -1,9 +1,14 @@
DebConf does their accounting with Ledger. # DebConf ledgers
DebConf does their accounting with Ledger.
Eg: <https://salsa.debian.org/debconf-team/public/data/dc25/-/tree/main/budget> Eg: <https://salsa.debian.org/debconf-team/public/data/dc25/-/tree/main/budget>
These repos are big; to clone just the accounting data for a few recent years, run `make` here. Each year has its own repo, and the repos are big.
Or to clone all years (starting 2017), `make all`. To clone just the accounting data for a few recent years: `make`
To clone all years, starting 2017: `make all`
Some years (eg 24 and 25) can be read by hledger as-is;
others may need some conversion, eg of [amount expressions](https://hledger.org/ledger.html#amount-expressions).
To check hledger readability for the years you have downloaded: `make check-hledger`
To check ledger readability: `make check-ledger`
Some years (eg 24 and 25) can be read by hledger with no changes needed;
others may need some conversion, eg [amount expressions](https://hledger.org/ledger.html#amount-expressions).