publist

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

make.sh (1147B)


      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 bib all --nohref > main_nohref.bib
     19 ./maketex.py en bib all --formal > main_formal.bib
     20 ./maketex.py en tex cv > selectpubli_en.tex
     21 ./make_talks_html.py authors venues publis talks
     22 ./makereviews.py en tex > reviews.tex
     23 ./makereviews.py en html > reviews_en.html
     24 ./makereviews.py fr html > reviews_fr.html
     25 
     26 # latex compilation is slow, do it only on-demand
     27 if [ "$1" = 'latex' ]
     28 then
     29   # must do the following, otherwise the numbering is off
     30   rm -f publist_{fr,en}.{pdf,aux,bbl,blg}
     31   latexmk -f -pdf publist_fr 
     32   latexmk -f -pdf publist_en
     33 fi
     34 
     35 echo "GENERATION COMPLETE"
     36 echo "DIFF FROM OLD TO NEW:"
     37 
     38 for a in ${OUTFILES[@]}
     39 do
     40   echo "== $a"
     41   colordiff ./oldversion/$a $a || true
     42 done
     43 
     44