shithub: rech

Download patch

ref: 7f6ff00b80a487acc913327b33dc2e977add72f2
parent: 996ae644683888ebb0e23d6173f6f5239f72175b
author: sirjofri <sirjofri@sirjofri.de>
date: Thu Aug 14 07:25:50 EDT 2025

adds balance generation to mkfile

--- a/mkfile
+++ b/mkfile
@@ -1,12 +1,18 @@
 invoices=`{cd invoice; walk -d -n 1}
 targets=`{for (f in $invoices) { echo invoice/^$f^/invoice-^$f^.pdf }}
 
-all:V: test invoices
+all:V: test invoices balance
 
 test:VQ:
 	# run tests for data integrity
 	bin/test/vmissingfiles
 	bin/test/vvariables
+
+balance:VQ: balance.pdf
+
+balance.pdf:VQ:
+	bin/balance | tbl | troff -ms | lp -dstdout | ps2pdf > $target
+	echo '√' balance.pdf
 
 invoices:VQ: $targets
 
--