|
@ -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 |