;examples: debconf: reports
This commit is contained in:
parent
1ba12c5396
commit
343f957cad
@ -19,10 +19,26 @@ dc%:
|
||||
git -C $@ sparse-checkout set --no-cone budget '!budget/invoices'
|
||||
git -C $@ apply --allow-empty ../patches/$@.patch
|
||||
|
||||
# make check-ledger, check-hledger - check readability of all years
|
||||
# make check-ledger, check-hledger - check readability of all years (main journal)
|
||||
check-%:
|
||||
@for d in dc*; do printf "$$d: "; $* -f $$d/budget/journal.ledger stats >/dev/null && echo ok; done
|
||||
|
||||
# make hledger-'ARGS' - run a hledger command on all years (main journal)
|
||||
hledger-%:
|
||||
@for d in dc*; do printf "\n$$d:\n"; hledger -f $$d/budget/journal.ledger $*; done
|
||||
|
||||
stats:
|
||||
@make -s hledger-stats
|
||||
|
||||
accounts:
|
||||
@make -s hledger-accounts
|
||||
|
||||
is:
|
||||
@make -s hledger-'is -2'
|
||||
|
||||
bs:
|
||||
@make -s hledger-'bs -2'
|
||||
|
||||
|
||||
# maintenance
|
||||
|
||||
|
||||
@ -10,3 +10,16 @@ Or to clone all years, starting 2017: `make all`
|
||||
Some patches for hledger readability will be applied; those might need updating from time to time.\
|
||||
To check hledger readability: `make check-hledger`\
|
||||
To check ledger readability: `make check-ledger`
|
||||
|
||||
To run some basic reports in all years:
|
||||
|
||||
- `make is`
|
||||
- `make bs`
|
||||
- `make accounts`
|
||||
- `make stats | grep 'Txns '`
|
||||
|
||||
To run an any hledger report in all years: `make hledger-'ARGS'`\
|
||||
Eg:
|
||||
|
||||
- `make hledger-'activity -W'`
|
||||
- `make hledger-'is -tYT --layout=bare'`
|
||||
|
||||
Loading…
Reference in New Issue
Block a user