commit 726d092c4dd16d433c47a987cc3ade6b723eef45
parent d6a1a6e8223830067f49b859537ac581c6a70499
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Wed, 6 Jan 2021 11:25:37 +0100
show diff
Diffstat:
make.sh | | | 29 | +++++++++++++++++++++++++---- |
1 file changed, 25 insertions(+), 4 deletions(-)
diff --git a/make.sh b/make.sh
@@ -1,7 +1,14 @@
#!/bin/bash
+# does not include the PDF files: publist_{fr,en}.pdf
+OUTFILES=(main.bib publis_{fr,en}.txt publis_all.html.{en,fr} reviews.tex reviews_{en,fr}.html selectpubli_en.tex talks_all.html.{en,fr} talks_last.html.{en,fr})
+
set -e
+rm -Rf ./oldversion
+mkdir ./oldversion
+cp ${OUTFILES[@]} ./oldversion
+
./maketex.py en
./maketex.py en bib all > main.bib
./maketex.py en tex > selectpubli_en.tex
@@ -10,7 +17,21 @@ set -e
./makereviews.py en html > reviews_en.html
./makereviews.py fr html > reviews_fr.html
-# must do the following, otherwise the numbering is off
-rm -f publist_{fr,en}.{pdf,aux,bbl,blg}
-latexmk -f -pdf publist_fr
-latexmk -f -pdf publist_en
+# latex compilation is slow, do it only on-demand
+if [ "$1" = 'latex' ]
+then
+ # must do the following, otherwise the numbering is off
+ rm -f publist_{fr,en}.{pdf,aux,bbl,blg}
+ latexmk -f -pdf publist_fr
+ latexmk -f -pdf publist_en
+fi
+
+echo "GENERATION COMPLETE"
+echo "DIFF FROM OLD TO NEW:"
+
+for a in ${OUTFILES[@]}
+do
+ diff ./oldversion/$a $a
+done
+
+