diff --git a/build-and-deploy.sh b/build-and-deploy.sh deleted file mode 100644 index 1dc2dfc..0000000 --- a/build-and-deploy.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash - -# Simple script to build he PDF, build the html, and deploy them to the gh-pages branch -./build-pdf.sh && ./build-html.sh && ./package-and-deploy.sh diff --git a/build-html-docker.sh b/build-html-docker.sh deleted file mode 100644 index b87793e..0000000 --- a/build-html-docker.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -cd /source - -userid="$(cat userid.info)" - -# Script to build an HTML site from the PDF source -pdf2htmlEX --zoom 1.5 --embed cfijo --dest-dir out DPSResume.pdf -chown -R $userid:$userid out/ -chmod -R 666 out/ -chmod u+x out/ -mv out/DPSResume.html out/index.html - -tar -czvf ResumeSite.tar.gz -C out/ . -chown $userid:$userid ResumeSite.tar.gz -chmod 666 ResumeSite.tar.gz -rm -rf out diff --git a/build-html-resume.sh b/build-html-resume.sh index 980c15a..297f60e 100755 --- a/build-html-resume.sh +++ b/build-html-resume.sh @@ -5,4 +5,6 @@ echo "$(id -u)" > userid.info # Script to build an HTML site from the PDF source docker run -v $(pwd):/source sothr/pdf2htmlex /usr/bin/env bash /source/build-html-resume-docker.sh +./cleanup-latex.sh + rm userid.info diff --git a/build-html.sh b/build-html.sh deleted file mode 100644 index 236217e..0000000 --- a/build-html.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -echo "$(id -u)" > userid.info - -# Script to build an HTML site from the PDF source -docker run -v $(pwd):/source sothr/pdf2htmlex /usr/bin/env bash /source/build-html-docker.sh - -rm userid.info diff --git a/build-pdf-resume-with-cover-letter-docker.sh b/build-pdf-resume-with-cover-letter-docker.sh index c6a8c29..dcd27eb 100755 --- a/build-pdf-resume-with-cover-letter-docker.sh +++ b/build-pdf-resume-with-cover-letter-docker.sh @@ -11,7 +11,11 @@ userid="$(cat userid.info)" # Script to build a PDF from the latex source latex --output-format pdf DPSResume.tex +chown $userid:$userid DPSResume.pdf +chmod 666 DPSResume.pdf latex --output-format pdf ${1}.tex +chown $userid:$userid ${1}.pdf +chmod 666 ${1}.pdf outfile="${1}_with_Resume.pdf" pdfjam --fitpaper 'true' --rotateoversize 'false' --suffix joined --no-landscape --outfile $outfile ${1}.pdf DPSResume.pdf diff --git a/build-pdf-resume-with-cover-letter.sh b/build-pdf-resume-with-cover-letter.sh index 86ad5d7..8601930 100755 --- a/build-pdf-resume-with-cover-letter.sh +++ b/build-pdf-resume-with-cover-letter.sh @@ -5,4 +5,6 @@ echo "$(id -u)" > userid.info # Script to build a PDF from the latex source docker run -v $(pwd):/source schickling/latex /usr/bin/env bash /source/build-pdf-resume-with-cover-letter-docker.sh $1 +./cleanup-latex.sh + rm userid.info diff --git a/build-pdf-resume.sh b/build-pdf-resume.sh index ddbf581..12cfa82 100755 --- a/build-pdf-resume.sh +++ b/build-pdf-resume.sh @@ -5,4 +5,6 @@ echo "$(id -u)" > userid.info # Script to build a PDF from the latex source docker run -v $(pwd):/source schickling/latex /usr/bin/env bash /source/build-pdf-resume-docker.sh +./cleanup-latex.sh + rm userid.info diff --git a/cleanup-latex.sh b/cleanup-latex.sh new file mode 100755 index 0000000..2112f42 --- /dev/null +++ b/cleanup-latex.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +rm -f *.aux *.4ct *.4tc *.dvi *.idv *.lg *.tmp *.xref