Hello! We are running our annual fundraising. Please consider making a donation if you value this freely available service or want to support people around the world working towards liberatory social change. https://riseup.net/donate.

Commit 00661978 authored by Perro Tuerto's avatar Perro Tuerto
Browse files

Priera prueba con contenedor de Pecas

parent 8a8bd7a9
image: nikazhenya/pecas
stage: deploy
- mkdir .public/
- cd tesis && ./generate-all && cd ..
- rm -rf .g* administrativo apuntes bibliografia protocolo
- mv * .public && mv .public public
- public
- master
......@@ -19,11 +19,6 @@ mv tesis/ebooks/out/logs/pc-analytics/analytics.html anexos/analitica/
# Modifica fecha de modificación al index.html
sed -i "s|\(<span class=\"date\">\).\+\(</span>\)|\1$(date +'%d de %B del %Y')\2|g" index.html
# Modifica uuid de la versión
new_uuid=$(expr substr $(uuidgen) 1 8)
sed -i "s|?v=\S\+\"|?v=$new_uuid\"|g" index.html
sed -i "s|\(<code class=\"version\">\)\S\+\(</code>\)|\1$new_uuid\2|g" index.html
# Refresca md5 de los archivos
sed -i "s|\(<code class=\"md5-md\">\)\S\+\(</code>\)|\1$(md5sum tesis/md/tesis_with-bib.md | awk '{print $1}')\2|g" index.html
sed -i "s|\(<code class=\"md5-html\">\)\S\+\(</code>\)|\1$(md5sum tesis/html/tesis.html | awk '{print $1}')\2|g" index.html
......@@ -31,3 +26,8 @@ sed -i "s|\(<code class=\"md5-pdf\">\)\S\+\(</code>\)|\1$(md5sum tesis/pdf/tesis
sed -i "s|\(<code class=\"md5-epub\">\)\S\+\(</code>\)|\1$(md5sum tesis/ebooks/out/tesis.epub | awk '{print $1}')\2|g" index.html
sed -i "s|\(<code class=\"md5-mobi\">\)\S\+\(</code>\)|\1$(md5sum tesis/ebooks/out/tesis.mobi | awk '{print $1}')\2|g" index.html
sed -i "s|\(<code class=\"md5-docx\">\)\S\+\(</code>\)|\1$(md5sum tesis/docx/tesis.docx | awk '{print $1}')\2|g" index.html
# Modifica uuid de la versión
timestamp=$(date +%s)
sed -i "s|?v=\S\+\"|?v=$timestamp\"|g" index.html
sed -i "s|\(<code class=\"version\">\)\S\+\(</code>\)|\1$timestamp\2|g" index.html
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