Mind training!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
447 B

#!/usr/bin/env bash
OUTDIR=target/documents
lein do clean, uberjar
mkdir -p $OUTDIR
./lojong fortune >$OUTDIR/lojong
./lojong json >$OUTDIR/lojong.json
./lojong html >$OUTDIR/lojong.html
TEX_CMD=$(which pdflatex)
if [ "$TEX_CMD" != "" ]; then
TEXDIR=target/tex
mkdir -p $TEXDIR
./lojong tex >$TEXDIR/lojong.tex
pushd $TEXDIR
$TEX_CMD lojong.tex
popd
cp $TEXDIR/lojong.pdf $OUTDIR
fi
cp resources/slogans.yaml $OUTDIR/lojong.yaml