From e727b56ad56eb5c974876cea9d59d1d6e54e6383 Mon Sep 17 00:00:00 2001 From: Drew Short Date: Thu, 21 Jan 2016 20:02:53 -0600 Subject: [PATCH] Working on a resume+cover letter build and packaging system --- build-resume-with-cover-letter-pdf-docker.sh | 23 ++++++++++++++++++++ build-resume-with-cover-letter-pdf.sh | 8 +++++++ 2 files changed, 31 insertions(+) create mode 100755 build-resume-with-cover-letter-pdf-docker.sh create mode 100755 build-resume-with-cover-letter-pdf.sh diff --git a/build-resume-with-cover-letter-pdf-docker.sh b/build-resume-with-cover-letter-pdf-docker.sh new file mode 100755 index 0000000..79493e8 --- /dev/null +++ b/build-resume-with-cover-letter-pdf-docker.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +cd /source + +userid="$(cat userid.info)" + +# Get PDFJam to combine the pdf's +curl -LSO http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic/firth/software/pdfjam/pdfjam_latest.tgz +tar -zxvf pdfjam_latest.tgz +export PATH="$PWD/pdfjam/bin:$PATH" + +# Script to build a PDF from the latex source +latex --output-format pdf DPSResume.tex +latex --output-format pdf ${1}.tex + +outfile="DPSResume_With_Coverletter.pdf" +pdfjoin ${1}.pdf DPSResume.pdf --outfile $outfile + +chown $userid:$userid $outfile +chmod 666 $outfile + +rm DPSResume.log +rm ${1}.log diff --git a/build-resume-with-cover-letter-pdf.sh b/build-resume-with-cover-letter-pdf.sh new file mode 100755 index 0000000..846bac5 --- /dev/null +++ b/build-resume-with-cover-letter-pdf.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +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-resume-with-cover-letter-pdf-docker.sh $1 + +rm userid.info