From 008f31cb3ac05bd13e4800530b0538554b4986aa Mon Sep 17 00:00:00 2001 From: Drew Short Date: Thu, 21 Jan 2016 22:44:53 -0600 Subject: [PATCH] Cleanup Moved/renamed scripts. Added a latex cleaning script. --- build-and-deploy.sh | 4 ---- build-html-docker.sh | 17 ----------------- build-html-resume.sh | 2 ++ build-html.sh | 8 -------- build-pdf-resume-with-cover-letter-docker.sh | 4 ++++ build-pdf-resume-with-cover-letter.sh | 2 ++ build-pdf-resume.sh | 2 ++ cleanup-latex.sh | 3 +++ 8 files changed, 13 insertions(+), 29 deletions(-) delete mode 100644 build-and-deploy.sh delete mode 100644 build-html-docker.sh delete mode 100644 build-html.sh create mode 100755 cleanup-latex.sh 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