~josealberto4444/cv

06b25cb5e9886854d400a7f750719d6bd7c9a1df — José Alberto Orejuela García 3 years ago 255e437
Add build instructions for both files

The build file could be simplified considerably, but I need to rewrite
compile.sh for POSIX shell, as it fails now in Alpine. I'll do it
eventually.
2 files changed, 12 insertions(+), 8 deletions(-)

M .build.yml
A switch-language.sh
M .build.yml => .build.yml +8 -8
@@ 12,17 12,17 @@ environment:
tasks:
- compile: |
    cd $cv
    pdflatex -file-line-error -interaction nonstopmode document.tex
    echo ""
    pdflatex -file-line-error -interaction nonstopmode document.tex > /dev/null
    biber document
    texfot pdflatex -file-line-error -interaction nonstopmode document.tex > /dev/null
    echo ""
    pdflatex -file-line-error -interaction nonstopmode document.tex > /dev/null
    texfot pdflatex -file-line-error -interaction nonstopmode document.tex
    mv document.pdf ../cv_es.pdf
# mv document.pdf ../cv_en.pdf
# git checkout spanish
# compilation steps
# mv document.pdf ../cv_es.pdf
    ./switch-language.sh
    pdflatex -file-line-error -interaction nonstopmode document.tex > /dev/null
    biber document
    texfot pdflatex -file-line-error -interaction nonstopmode document.tex > /dev/null
    texfot pdflatex -file-line-error -interaction nonstopmode document.tex
    mv document.pdf ../cv_en.pdf
- package: |
    tar -cvz cv_*.pdf > site.tar.gz
- upload: |

A switch-language.sh => switch-language.sh +4 -0
@@ 0,0 1,4 @@
#!/bin/sh

sed -i 's/spanish/english/' document.tex
sed -i 's/cv_es.tex/cv_en.tex/' document.tex