The public sources for my resume. These sources are auto compiled and published upon changes.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
792 B

  1. #!/usr/bin/env bash
  2. cd /source
  3. userid="$(cat userid.info)"
  4. # Get PDFJam to combine the pdf's
  5. #curl -LSO http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic/firth/software/pdfjam/pdfjam_latest.tgz
  6. #tar -zxvf pdfjam_latest.tgz
  7. #export PATH="$PWD/pdfjam/bin:$PATH"
  8. # Script to build a PDF from the latex source
  9. latex --output-format pdf resume.tex
  10. chown $userid:$userid resume.pdf
  11. chmod 666 resume.pdf
  12. latex --output-format pdf ${1}.tex
  13. chown $userid:$userid ${1}.pdf
  14. chmod 666 ${1}.pdf
  15. outfile="${1}_with_resume.pdf"
  16. pdfjam --fitpaper 'true' --rotateoversize 'false' --suffix joined --no-landscape --outfile $outfile ${1}.pdf resume.pdf
  17. #pdfjoin ${1}.pdf DPSResume.pdf --no-landscape --outfile $outfile
  18. chown $userid:$userid $outfile
  19. chmod 666 $outfile
  20. rm resume.log
  21. rm ${1}.log