Commit 85f01349 authored by ghtmtt's avatar ghtmtt

automatic copy files in folders in server script

parent d2d833f6
......@@ -26,27 +26,27 @@ PC_EN_EU_IN="cv_pc_en_eu"
PC_EN_EU_OUT="Cavallini_CV_eu_en"
# cleanup
rm -rf _build/*
# 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'
#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
#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 /usr/local/src/faunalia-website/pdf/; cp -R _build/*.html /usr/local/src/faunalia-website;;
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