ReachableCEO-Profile-FullTi.../non-cv/build.sh

66 lines
1.8 KiB
Bash
Raw Normal View History

2024-11-27 19:59:37 +00:00
#!/bin/bash
rm ./output/intermediate/CharlesNWybleShortResume.md
IntermediateOutputFile="./output/intermediate/CharlesNWybleShortResume.md"
# Combine markdown files into single input file for pandoc
NonCvResumeInputFiles=(
"../@ReachableCEO/Resume/Non-CV/Skills.md"
"../@ReachableCEO/Resume/Non-CV/Projects.md"
)
#Pull in my contact info
cat "../common/@ReachableCEO/Resume/Common/Contact-Info.md" >> $IntermediateOutputFile
echo " " >> $IntermediateOutputFile
#Pull in my skills
2024-11-28 19:00:01 +00:00
echo "## Skills" >> "$IntermediateOutputFile"
#Table heading
#| | | |
#| --- | --- | --- |
#| | | |
#| | | |
echo "|Skill|Experience|Skil Details|" >> $IntermediateOutputFile
echo "|---|---|---|" >> $IntermediateOutputFile
#Table rows
IFS=$'\n\t'
for skill in \
$(cat ../common/@ReachableCEO/Resume/Common/Skills.csv); do
SKILL_NAME="$(echo $skill|awk -F '|' '{print $1}')"
SKILL_YEARS="$(echo $skill|awk -F '|' '{print $2}')"
SKILL_DETAIL="$(echo $skill|awk -F '|' '{print $3}')"
echo "|**$SKILL_NAME**|$SKILL_YEARS|$SKILL_DETAIL|" >> $IntermediateOutputFile
done
unset IFS
2024-11-27 19:59:37 +00:00
#Pull in my projects
cat "./@ReachableCEO/Resume/Non-Cv/Projects.md" >> $IntermediateOutputFile
echo " " >> $IntermediateOutputFile
#Pull in my work history
cat "../common/WorkHistory.md" >> $IntermediateOutputFile
2024-11-27 19:59:37 +00:00
echo " " >> $IntermediateOutputFile
#Pull in my education info
cat "../common/@ReachableCEO/Resume/common/Education.md" >> $IntermediateOutputFile
echo " " >> $IntermediateOutputFile
2024-11-28 15:19:14 +00:00
# Run pandoc to generate PDF into output dir
2024-11-27 19:59:37 +00:00
pandoc \
2024-11-27 20:06:31 +00:00
$IntermediateOutputFile \
2024-11-27 19:59:37 +00:00
--template eisvogel \
--metadata-file=../common/HumanOutput.yml \
--from markdown \
--to=pdf \
2024-11-27 20:05:12 +00:00
--output /d/tsys/@ReachableCEO/resume.reachableceo.com/non-cv/CharlesNWybleShortResume.pdf