diff options
author | Jonas Smedegaard <dr@jones.dk> | 2014-07-03 17:47:35 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2014-07-03 18:15:38 +0200 |
commit | 918c4dbb2dedfeb98e78d53c5ee51aad0207f257 (patch) | |
tree | 23ca719ed0e4653a3cba58ef007a8ca0ab5bc273 /bin | |
parent | 64b9a887fbdcc6b0e6208e0fc8a2a4b27968b43f (diff) |
Restructure bank/{account}-{year}.* → {year}/assets/{account}.*.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/myhledger | 2 | ||||
-rwxr-xr-x | bin/mymerkur2ledger | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/bin/myhledger b/bin/myhledger index cd3a219..d2cdac6 100755 --- a/bin/myhledger +++ b/bin/myhledger @@ -20,10 +20,10 @@ journal() { cat *.ledger 2> /dev/null || true for year in $years; do cat $year/*.ledger 2> /dev/null || true + cat $year/assets/*.ledger 2> /dev/null || true cat $year/income/*.ledger 2> /dev/null || true cat $year/expenses/*.ledger 2> /dev/null || true done - cat ../bank/*.ledger 2> /dev/null || true cat ../taxes/*.ledger 2> /dev/null || true } diff --git a/bin/mymerkur2ledger b/bin/mymerkur2ledger index 429f40f..e047935 100755 --- a/bin/mymerkur2ledger +++ b/bin/mymerkur2ledger @@ -1,4 +1,7 @@ #!/bin/sh +rulesfile="$1" +shift + csvtool -t ";" -u COMMA square "$@" \ - | hledger print --rules-file merkur.rules -f- + | hledger print ${rulesfile:+--rules-file "$rulesfile"} -f- |