;examples: debconf: make check-*
This commit is contained in:
parent
f4e642093d
commit
a0c8004147
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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).
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user