Commit 4cefc1c0 authored by ghtmtt's avatar ghtmtt

single locale and server file for compiling

parent 1043a1a7
......@@ -74,3 +74,10 @@ pdflatex -output-directory $BUILD/ -jobname=$PC_IT_EU_OUT $OUT/$PC_IT_EU_IN.tex
pdflatex -output-directory $BUILD/ -jobname=$MG_IT_EU_OUT $OUT/$MG_IT_EU_IN.tex
pdflatex -output-directory $BUILD/ -jobname=$PC_EN_EU_OUT $OUT/$PC_EN_EU_IN.tex
pdflatex -output-directory $BUILD/ -jobname=$MG_EN_EU_OUT $OUT/$MG_EN_EU_IN.tex
# copia il tutto nella dir definitiva, in produzione
read -p "CV compilati, verifica che vadano bene. Li copio in produzione? [y/n]" choice2
case "$choice2" in
y|Y ) echo "Publishing website";cp -R _build/*.pdf ../grav-faunalia/user/pages/files/; cp -R _output/cv_pc/*.md ../grav-faunalia/user/pages/05.intro/cv_pc/; cp -R _output/cv_mg/*.md ../grav-faunalia/user/pages/05.intro/cv_mg/;;
* ) echo "CV copiati in cartella";;
esac
#!/bin/sh
# script per la generazione automatica di tuti gli output
# in vari formati, per testing
# rimuovere quelli non voluti, alla fine
# rimuovere i suffissi esplicativi al nomefile
BUILD="_build"
OUT="_output"
STYLE="_static"
MG_IT_IN="cv_mg_it"
MG_IT_OUT="Ghetta_CV_it"
PC_IT_IN="cv_pc_it"
PC_IT_OUT="Cavallini_CV_it"
MG_EN_IN="cv_mg_en"
MG_EN_OUT="Ghetta_CV_en"
PC_EN_IN="cv_pc_en"
PC_EN_OUT="Cavallini_CV_en"
MG_IT_EU_IN="cv_mg_it_eu"
MG_IT_EU_OUT="Ghetta_CV_eu_it"
PC_IT_EU_IN="cv_pc_it_eu"
PC_IT_EU_OUT="Cavallini_CV_eu_it"
MG_EN_EU_IN="cv_mg_en_eu"
MG_EN_EU_OUT="Ghetta_CV_eu_en"
PC_EN_EU_IN="cv_pc_en_eu"
PC_EN_EU_OUT="Cavallini_CV_eu_en"
# cleanup
# rm -rf _build/*
# generate the html from rst
#rst2html5 --title='CV Dr. Matteo Ghetta' --language=it --stylesheet=$STYLE/custom.css $OUT/$MG_IT_IN.rst > $BUILD/$MG_IT_OUT'.html'
#rst2html5 --title='CV Dr. Matteo Ghetta' --language=en --stylesheet=$STYLE/custom.css $OUT/$MG_EN_IN.rst > $BUILD/$MG_EN_OUT'.html'
#rst2html5 --title='CV Dr. Paolo Cavallini' --language=it --stylesheet=$STYLE/custom.css $OUT/$PC_IT_IN.rst > $BUILD/$PC_IT_OUT'.html'
#rst2html5 --title='CV Dr. Paolo Cavallini' --language=en --stylesheet=$STYLE/custom.css $OUT/$PC_EN_IN.rst > $BUILD/$PC_EN_OUT'.html'
# write pdf from latex
#pdflatex -output-directory $BUILD/ -jobname=$PC_IT_EU_OUT $OUT/$PC_IT_EU_IN.tex
#pdflatex -output-directory $BUILD/ -jobname=$MG_IT_EU_OUT $OUT/$MG_IT_EU_IN.tex
#pdflatex -output-directory $BUILD/ -jobname=$PC_EN_EU_OUT $OUT/$PC_EN_EU_IN.tex
#pdflatex -output-directory $BUILD/ -jobname=$MG_EN_EU_OUT $OUT/$MG_EN_EU_IN.tex
#pdflatex -output-directory $BUILD/ -jobname=$PC_IT_EU_OUT $OUT/$PC_IT_EU_IN.tex
#pdflatex -output-directory $BUILD/ -jobname=$MG_IT_EU_OUT $OUT/$MG_IT_EU_IN.tex
#pdflatex -output-directory $BUILD/ -jobname=$PC_EN_EU_OUT $OUT/$PC_EN_EU_IN.tex
#pdflatex -output-directory $BUILD/ -jobname=$MG_EN_EU_OUT $OUT/$MG_EN_EU_IN.tex
# copia il tutto nella dir definitiva, in produzione
read -p "CV compilati, verifica che vadano bene. Li copio in produzione? [y/n]" choice2
case "$choice2" in
y|Y ) echo "Publishing website";cp -R _build/*.pdf ../grav-faunalia/user/pages/files/; cp -R _output/cv_pc/*.md ../grav-faunalia/user/pages/05.intro/cv_pc/; cp -R _output/cv_mg/*.md ../grav-faunalia/user/pages/05.intro/cv_mg/;;
* ) echo "CV copiati in cartella";;
esac
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment