publist

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

deploy.sh (1041B)


      1 #!/bin/bash
      2 
      3 cd "$HOME/site/publist"
      4 git pull
      5 
      6 if [ ! -f current_rev ]
      7 then
      8   echo x > current_rev
      9 fi
     10 
     11 OLDREV=$(cat current_rev)
     12 CURREV=$(git rev-parse HEAD)
     13 
     14 if [ $OLDREV != $CURREV ]
     15 then
     16   ./make.sh latex
     17   echo "$CURREV" > current_rev
     18 else
     19   echo "skipping latex compilation"
     20 fi
     21 
     22 for l in en fr
     23 do
     24   cp -a publist_$l.pdf ~/public_html/publications/amarilli_publist_$l.pdf
     25 done
     26 
     27 cd ~/site/website2
     28 git pull
     29 
     30 sed "/INCLUDEPUBLI/{
     31 r $HOME/site/publist/publis_all.html.en
     32 d
     33 }" ./publications/index.md > ~/public_html/publications/index.md
     34 sed "/INCLUDEPUBLI/{
     35 r $HOME/site/publist/publis_all.html.fr
     36 d
     37 }" ./publications/index.fr.md > ~/public_html/publications/index.fr.md
     38 
     39 sed "/INCLUDETALK/{
     40 r $HOME/site/publist/talks_all.html.en
     41 d
     42 }" ./talks/index.md > ~/public_html/work/talks/index.md
     43 sed "/INCLUDETALK/{
     44 r $HOME/site/publist/talks_all.html.fr
     45 d
     46 }" ./talks/index.fr.md > ~/public_html/work/talks/index.fr.md
     47 
     48 ./hiermd_website.sh publications/
     49 ./deploy_part.sh publications/
     50 ./hiermd_website.sh work/talks/
     51 ./deploy_part.sh work/talks/