From 22b74df8f6335495ac36eb59774642d469840b06 Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Tue, 14 Jan 2020 20:52:38 -0500
Subject: majorly improved make
---
make | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
(limited to 'make')
diff --git a/make b/make
index ee6f4a3..3a7a5e3 100755
--- a/make
+++ b/make
@@ -18,6 +18,7 @@ cd document
cp ../format.orig.tex ../format.tex
pdftex report.tex || echo "You must install \`pdftex\` (MacTeX, TeXLive, MikTeX, etc)"
mv pageno.tex ..
+mv pageno2.tex ..
mv report.pdf ../outputs/report-double.pdf
sed ../format.orig.tex -e 's/\\baselineskip=24pt/\\baselineskip=14pt/g' >../format.tex
pdftex report.tex
@@ -25,12 +26,12 @@ mv report.pdf ../outputs/report-single.pdf
cd ..
pdftex pics.tex
mv pics.pdf outputs/pics.pdf
-pdftk outputs/report-double.pdf cat $pageno-$(expr $pageno + 4) output outputs/graphs-tables.pdf
+pdftk outputs/report-double.pdf cat $(expr $(cat pageno.tex) + 1)-$(expr $(cat pageno2.tex) + 1) output outputs/graphs-tables.pdf
rm *.log
rm document/report.log
cp assets/* outputs/
+rm format.tex pageno.tex document/pageno.tex pageno2.tex document/pageno2.tex
cd $orig
-rm format.tex pageno.tex document/pageno.tex
}
create 2>/dev/null
--
cgit