publist

managing my list of publications, talks, reviews
git clone https://a3nm.net/git/publist/
Log | Files | Refs | README | LICENSE

make.sh (1042B)


      1 #!/bin/bash
      2 
      3 # does not include the PDF files: publist_{fr,en}.pdf 
      4 OUTFILES=(main.bib publis_{fr,en}.txt publis_all.html.{en,fr} publis_main.html.{en,fr} reviews.tex reviews_{en,fr}.html selectpubli_en.tex talks_all.html.{en,fr} talks_last.html.{en,fr})
      5 
      6 set -e
      7 
      8 rm -Rf ./oldversion
      9 mkdir ./oldversion
     10 # avoid error on first run
     11 if [ -f main.bib ]
     12 then
     13   cp ${OUTFILES[@]} ./oldversion
     14 fi
     15 
     16 ./maketex.py en
     17 ./maketex.py en bib all > main.bib
     18 ./maketex.py en tex > selectpubli_en.tex
     19 ./make_talks_html.py authors venues publis talks
     20 ./makereviews.py en tex > reviews.tex
     21 ./makereviews.py en html > reviews_en.html
     22 ./makereviews.py fr html > reviews_fr.html
     23 
     24 # latex compilation is slow, do it only on-demand
     25 if [ "$1" = 'latex' ]
     26 then
     27   # must do the following, otherwise the numbering is off
     28   rm -f publist_{fr,en}.{pdf,aux,bbl,blg}
     29   latexmk -f -pdf publist_fr 
     30   latexmk -f -pdf publist_en
     31 fi
     32 
     33 echo "GENERATION COMPLETE"
     34 echo "DIFF FROM OLD TO NEW:"
     35 
     36 for a in ${OUTFILES[@]}
     37 do
     38   echo "== $a"
     39   colordiff ./oldversion/$a $a || true
     40 done
     41 
     42