diff --git a/bin/build.sh b/bin/build.sh index 17a68aa..cc41d2f 100755 --- a/bin/build.sh +++ b/bin/build.sh @@ -9,7 +9,7 @@ function setup_pdflatex { fi if [ ! -d $TEXML_HOME/tex ]; then - ln -s "`realpath tex`" $TEXML_HOME + ln -s "`realpath .`" $TEXML_HOME fi } @@ -32,19 +32,16 @@ function make_packet { pdfs="" while read p; do make_pdf "songs/$p.tex" - pdfs="$pdfs \"build/pdf/$p.pdf\"" - done < $1 + done < <(grep includepdf $1 | sed -E 's/.*{build\/pdf\/([^}]*)\.pdf}.*/\1/') mkdir -p "build/packets" - #echo "$PDF_JOINER" --output "build/$1.pdf" $pdfs - pdflatex \ - -interaction=nonstopmode \ - -output-directory="build/packets" \ - "$1" + -interaction=nonstopmode \ + -output-directory="build/packets" \ + "$1" } setup_pdflatex -make_pdf "$1" +#make_pdf "$1" -#make_packet "packets/aircoustic201910.tex" +make_packet "packets/aircoustic201910.tex" diff --git a/packets/aircoustic201910.tex b/packets/aircoustic201910.tex index e1d84be..5de2538 100644 --- a/packets/aircoustic201910.tex +++ b/packets/aircoustic201910.tex @@ -3,6 +3,7 @@ \usepackage{pdfpages} \begin{document} \includepdf[pages=-]{build/pdf/Pat Benatar/We Belong.pdf} +\includepdf[pages=-]{build/pdf/Pat Benatar/We Belong Capo I.pdf} \includepdf[pages=-]{build/pdf/Daniel Johnston/Life In Vain.pdf} \includepdf[pages=-]{build/pdf/R.E.M./Fall on Me.pdf} \includepdf[pages=-]{build/pdf/Guns 'N Roses/Patience.pdf}