diff options
author | Jonas Smedegaard <dr@jones.dk> | 2018-07-03 00:45:38 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2018-07-03 00:45:38 +0200 |
commit | 24a0eb30b323d0fac2a4717330e507175d5feff5 (patch) | |
tree | c2ed349be084df5e1a1c21f9f543218a21880acb /bin/myhledger | |
parent | 42cfe15a0c8be7da2f20fa4fa5e89c320f5c80d9 (diff) |
Restructure loading: Apply primo explicitly. Apply ultime. Apply defaults before loading each dir. Generate bank ledger with dot as floating-point separator.
Diffstat (limited to 'bin/myhledger')
-rwxr-xr-x | bin/myhledger | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/myhledger b/bin/myhledger index a7d81d6..cf73eef 100755 --- a/bin/myhledger +++ b/bin/myhledger @@ -20,12 +20,16 @@ years="${years:-$(find "$basedir" -mindepth 1 -maxdepth 1 -type d -regex '.*/[0- journal() { set -e cd "$basedir" - cat *.ledger 2> /dev/null || true for year in $years; do - cat $year/*.ledger 2> /dev/null || true + cat defaults.ledger 2> /dev/null || true + cat $year/primo.ledger 2> /dev/null || true + cat defaults.ledger 2> /dev/null || true cat $year/assets/*.ledger 2> /dev/null || true + cat defaults.ledger 2> /dev/null || true cat $year/income/*.ledger 2> /dev/null || true + cat defaults.ledger 2> /dev/null || true cat $year/expenses/*.ledger 2> /dev/null || true + cat $year/ultimo.ledger 2> /dev/null || true done } |