summaryrefslogtreecommitdiff
path: root/scripts/report
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/report')
-rw-r--r--[-rwxr-xr-x]scripts/report8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/report b/scripts/report
index c5dbe171..aa42982e 100755..100644
--- a/scripts/report
+++ b/scripts/report
@@ -1,15 +1,17 @@
#!/bin/sh
+dir=$HOME/doc/finance
+
cd /tmp
-ledger "$@" > report
+
+ledger -M -G register "$@" > $1
gnuplot <<EOF
set terminal png
set output "report.png"
set xdata time
set timefmt "%Y/%m/%d"
-plot "report" using 1:2 with linespoints
+plot "$1" using 1:2 with linespoints
EOF
-rm -f report
open report.png