mirror of
https://github.com/soconnor0919/resume-cv.git
synced 2025-12-12 22:14:43 -05:00
Update build-local
This commit is contained in:
@@ -1,5 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Check if building specific CV variant
|
||||||
|
CV_VARIANT=""
|
||||||
|
if [ "$1" = "cv-upenn" ]; then
|
||||||
|
CV_VARIANT="cv-upenn"
|
||||||
|
echo "Building UPenn-optimized CV..."
|
||||||
|
fi
|
||||||
|
|
||||||
# Source secrets if the file exists
|
# Source secrets if the file exists
|
||||||
if [ -f .secrets ]; then
|
if [ -f .secrets ]; then
|
||||||
source .secrets
|
source .secrets
|
||||||
@@ -78,7 +85,7 @@ EOL
|
|||||||
|
|
||||||
build_local resume.tex
|
build_local resume.tex
|
||||||
build_local cv.tex
|
build_local cv.tex
|
||||||
|
|
||||||
mv resume.pdf output/resume-private.pdf 2>/dev/null || true
|
mv resume.pdf output/resume-private.pdf 2>/dev/null || true
|
||||||
mv cv.pdf output/cv-private.pdf 2>/dev/null || true
|
mv cv.pdf output/cv-private.pdf 2>/dev/null || true
|
||||||
fi
|
fi
|
||||||
@@ -99,12 +106,19 @@ cat > personal_info.tex << EOL
|
|||||||
\newcommand{\personalSchoolAddressLineThree}{~}
|
\newcommand{\personalSchoolAddressLineThree}{~}
|
||||||
EOL
|
EOL
|
||||||
|
|
||||||
build_local resume.tex
|
# Build specific CV variant if requested
|
||||||
build_local cv.tex
|
if [ "$CV_VARIANT" = "cv-upenn" ]; then
|
||||||
|
build_local cv-upenn.tex
|
||||||
|
mv cv-upenn.pdf output/cv-upenn.pdf
|
||||||
|
echo "UPenn CV build complete! Generated: output/cv-upenn.pdf"
|
||||||
|
else
|
||||||
|
build_local resume.tex
|
||||||
|
build_local cv.tex
|
||||||
|
|
||||||
mv resume.pdf output/resume-public.pdf
|
mv resume.pdf output/resume-public.pdf
|
||||||
mv cv.pdf output/cv-public.pdf
|
mv cv.pdf output/cv-public.pdf
|
||||||
|
|
||||||
echo "Build complete!"
|
echo "Build complete!"
|
||||||
echo "Generated files in output/:"
|
echo "Generated files in output/:"
|
||||||
ls -l output/
|
ls -l output/
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user