Browse Source

Cleanup

Moved/renamed scripts.
Added a latex cleaning script.
environments/production/deployments/9
Drew Short 9 years ago
parent
commit
008f31cb3a
  1. 4
      build-and-deploy.sh
  2. 17
      build-html-docker.sh
  3. 2
      build-html-resume.sh
  4. 8
      build-html.sh
  5. 4
      build-pdf-resume-with-cover-letter-docker.sh
  6. 2
      build-pdf-resume-with-cover-letter.sh
  7. 2
      build-pdf-resume.sh
  8. 3
      cleanup-latex.sh

4
build-and-deploy.sh

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

17
build-html-docker.sh

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

2
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

8
build-html.sh

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

4
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

2
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

2
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

3
cleanup-latex.sh

@ -0,0 +1,3 @@
#!/usr/bin/env bash
rm -f *.aux *.4ct *.4tc *.dvi *.idv *.lg *.tmp *.xref
Loading…
Cancel
Save