dots

Dotfiles for Linux
git clone https://git.ckiri.com/cmk/dots.git
Log | Files | Refs | README

bewerbung.sh (2483B)


      1 #/bin/sh
      2 #
      3 # Script to generate a Bewerbungsmappe -- saving a lot of manual labor
      4 # Run `bewerbung ats` to generate ats compliant (fully maschine-parseable) documents
      5 
      6 POSTFIX="Chris_Kiriakou"
      7 CV_LOCATION="${HOME}/proj/cv"
      8 CERT_LOCATION="${HOME}/docs/certs"
      9 LETTER_LOCATION="${HOME}/proj/letter"
     10 BASENAME=$(basename "$PWD")
     11 WORKDIR=$(pwd)
     12 
     13 # Generate `lebenslauf.tex` template and link it to the `content` directory of
     14 # the cv project. This is just the technical skill section. Only Add add
     15 # technical skills that are required/related.
     16 test ! -f ./lebenslauf.tex && cat << 'EOF' > ./lebenslauf.tex
     17 \section*{Technische Fähigkeiten}
     18 
     19 \makebox[3.5cm][l]{Programmiersprachen:} Python, C, POSIX-Shell, Go, SQL \\
     20 \makebox[3.5cm][l]{Technologien:} Git, Make, GDB, Jenkins, Ansible, GNU-Coreutils, SSH, Rsync, Docker, KVM/QEMU \\
     21 \makebox[3.5cm][l]{Unternehmenssysteme:} SAP Datasphere, SAP Analytics Cloud, Microsoft Office \\
     22 \makebox[3.5cm][l]{Webtechnologien:} Nginx, HTML, CSS, Hugo \\
     23 \makebox[3.5cm][l]{Projektmanagement:} Jira, Confluence \\
     24 EOF
     25 
     26 test ! -f ${CV_LOCATION}/content/${BASENAME}.tex && ln -s ${WORKDIR}/lebenslauf.tex ${CV_LOCATION}/content/${BASENAME}.tex
     27 
     28 # Generate `anschrieben.tex` template and link it to the `content` directory of
     29 # the letter project.
     30 test ! -f ./anschreiben.tex && cat << 'EOF' > ./anschreiben.tex 
     31 \setkomavar{subject}{Betreff des Anschreibens}
     32 
     33 % Empfängeradressdaten
     34 \begin{letter}{
     35     Vorname Nachname \\
     36     Unternehmen \\
     37     Abteilung \\
     38     Straße Hausnummer \\
     39     Postleitzahl Stadt
     40 }
     41 
     42 \opening{Sehr geehrte Damen und Herren,}
     43 
     44 Inhalt des Anschreibens.
     45 
     46 Mit freundlichen Grüßen \\
     47 EOF
     48 
     49 test ! -f ${LETTER_LOCATION}/content/${BASENAME}.tex && ln -s ${WORKDIR}/anschreiben.tex ${LETTER_LOCATION}/content/${BASENAME}.tex
     50 
     51 # Generate the CV
     52 cd $CV_LOCATION
     53 
     54 make $1 doc=${BASENAME}
     55 cp ./build/${BASENAME}.pdf ${WORKDIR}/Lebenslauf_${POSTFIX}.pdf
     56 
     57 # Generate a single file containing all certificates
     58 cd $CERT_LOCATION
     59 
     60 # TODO: Add SATA Bescheinigung/Arbeitszeugnis
     61 pdftk \
     62     hhn/bsc_de.pdf \
     63     hhn/general_studies.pdf \
     64     mb/internship.pdf \
     65     valeo/working_student.pdf \
     66     bsbb/1bkfh.pdf \
     67     valeo/testing_specialist.pdf \
     68     ihk/apprenticeship_exam.pdf \
     69     valeo/apprentisceship.pdf \
     70     css/berufsschule.pdf \
     71     output ${WORKDIR}/Zeugnisse_${POSTFIX}.pdf
     72 
     73 # Generate the cover letter
     74 cd $LETTER_LOCATION
     75 
     76 make $1 doc=${BASENAME}
     77 cp ./build/${BASENAME}.pdf ${WORKDIR}/Anschreiben_${POSTFIX}.pdf
     78 
     79 cd $WORKDIR