diff --git a/stitch b/stitch index fa5f90f..ffdc46e 100755 --- a/stitch +++ b/stitch @@ -1,12 +1,23 @@ #!/usr/bin/env bash +usage() { + cat < $header - -if [ -z "$outputname" ] ; then - outputname=test -fi -if [ -f "$outputname" ] ; then - rm "$outputname" -fi -pandoc "$working_dir/header.md" "$directory/*.md" -o "$outputname.pdf" +formatting "$TITLE" > $header +pandoc $header $working_dir/*.md --toc --toc-depth=1 -o "$OUTPUT.pdf" +# cleanup rm "$working_dir/header.md" + +