commit 172f4e4ee06285d2bd372bdc55509cb958878d2b parent 1f7e9968866e7a23b079fc8e3e889f4fde7102eb Author: Antoine Amarilli <a3nm@a3nm.net> Date: Thu, 2 Feb 2023 16:48:15 +0100 deploy Diffstat:
deploy.sh | | | 31 | +++++++++++++++++++++++++++++++ |
includes.sh | | | 38 | ++++++++++++++++++++++++++++++++++++++ |
2 files changed, 69 insertions(+), 0 deletions(-)
diff --git a/deploy.sh b/deploy.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +touch current_rev +OLDREV=$(cat current_rev) +CURREV=$(git rev-parse HEAD) +if [ $OLDREV != $CURREV ] +then + ./make.sh latex + echo "$CURREV" > current_rev +else + echo "skipping latex compilation" +fi + +for l in en fr +do + cp -a publist_$l.pdf ~/public_html/publications/amarilli_publist_$l.pdf +done + +cd ~/site/website2 +git pull + +sed "/INCLUDEPUBLI/{ +r $HOME/site/publist/publis_all.html.en +d +}" ./publications/index.md > ~/public_html/publications/index.md +sed "/INCLUDEPUBLI/{ +r $HOME/site/publist/publis_all.html.fr +d +}" ./publications/index.fr.md > ~/public_html/publications/index.fr.md +./hiermd_website.sh publications/ +./deploy_part.sh publications/ diff --git a/includes.sh b/includes.sh @@ -0,0 +1,38 @@ +#!/bin/bash +# replace INCLUDE tags by list of recent publis, talks, reviews + +# no longer used +# +cd ~/public_html +for a in en fr +do + sed -i "/INCLUDEPUBLI/{ + r $DIR/publist/publis_main.html.$a + d + }" index.html.$a +done + +for a in en fr +do + sed -i "/INCLUDETALK/{ + r $DIR/publist/talks_last.html.$a + d + }" index.html.$a +done +sed -i "/INCLUDETALK/{ +r $DIR/publist/talks_all.html.en +d +}" work/talks/index.md +sed -i "/INCLUDETALK/{ +r $DIR/publist/talks_all.html.fr +d +}" work/talks/index.fr.md + +for a in en fr +do + sed -i "/INCLUDEREVIEWS/{ + r $DIR/publist/reviews_${a}.html + d + }" index.html.$a +done +