rechnung script

This commit is contained in:
Wolfgang Hottgenroth 2023-03-12 19:14:34 +01:00
parent 9bb6369428
commit 735806a116
Signed by: wn
GPG Key ID: 836E9E1192A6B132

18
rechnung.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
BILL_NO=$1
if [ "$BILL_NO" = "" ]; then
echo "No billing number given"
exit 1
fi
NB_DIR=~/Workspace/neben-brief
export PYTHONPATH=${NB_DIR}/rechnung
python3 ${NB_DIR}/generate.py -i ${BILL_NO}.json -t ${NB_DIR}/rechnung/rechnung.tmpl -o ${BILL_NO}.tex -p billingPreprocessor
pdflatex ${BILL_NO}.tex
rm ${BILL_NO}.aux ${BILL_NO}.log