Browse Source

fixing cover letter tooling

environments/production/deployments/29
Drew Short 5 years ago
parent
commit
ee53ae029a
  1. 0
      cover_letters/2019-09-CL-Elastic-Senior-Java-Engineer-Security.tex
  2. 18
      scripts/build-pdf-cover-letter-docker.sh
  3. 16
      scripts/build-pdf-cover-letter.sh

0
cover_letters/2019-09-CL-Elastic-Senior-Java-Engineer-Security.sty → cover_letters/2019-09-CL-Elastic-Senior-Java-Engineer-Security.tex

18
scripts/build-pdf-cover-letter-docker.sh

@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -e
set -x
cd /source
userid="$(cat userid.info)"
# Script to build a PDF from the latex source
latex --output-format pdf "${1}"
outfile="$(basename -- ${1} | cut -f1 -d'.')"
chown $userid:$userid ${outfile}.pdf
chmod 666 ${outfile}.pdf
mv "${outfile}.pdf" "cover_letters/${outfile}.pdf"
rm ${outfile}.log
rm ${outfile}.aux

16
scripts/build-pdf-cover-letter.sh

@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -e
set -x
echo "$(id -u)" > userid.info
# Script to build a PDF from the latex source
docker run -it \
-v $(pwd):/source \
schickling/latex \
/usr/bin/env bash /source/scripts/build-pdf-cover-letter-docker.sh $1
./scripts/cleanup-latex.sh
rm userid.info
Loading…
Cancel
Save