Browse Source

Consistent naming

Changed the names of some scripts
Updated the script contents to call the right files
environments/production/deployments/9
Drew Short 9 years ago
parent
commit
c804262dc7
  1. 4
      build-and-deploy-resume.sh
  2. 8
      build-and-deploy.sh
  3. 34
      build-html-docker.sh
  4. 17
      build-html-resume-docker.sh
  5. 8
      build-html-resume.sh
  6. 16
      build-html.sh
  7. 0
      build-pdf-resume-with-cover-letter-docker.sh
  8. 2
      build-pdf-resume-with-cover-letter.sh

4
build-and-deploy-resume.sh

@ -0,0 +1,4 @@
#!/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

8
build-and-deploy.sh

@ -1,4 +1,4 @@
#!/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
#!/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

34
build-html-docker.sh

@ -1,17 +1,17 @@
#!/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
#!/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

17
build-html-resume-docker.sh

@ -0,0 +1,17 @@
#!/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

8
build-html-resume.sh

@ -0,0 +1,8 @@
#!/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-resume-docker.sh
rm userid.info

16
build-html.sh

@ -1,8 +1,8 @@
#!/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
#!/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

0
build-resume-with-cover-letter-pdf-docker.sh → build-pdf-resume-with-cover-letter-docker.sh

2
build-resume-with-cover-letter-pdf.sh → build-pdf-resume-with-cover-letter.sh

@ -3,6 +3,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-resume-with-cover-letter-pdf-docker.sh $1
docker run -v $(pwd):/source schickling/latex /usr/bin/env bash /source/build-pdf-resume-with-cover-letter-docker.sh $1
rm userid.info
Loading…
Cancel
Save