2024-12-09 18:43:23 +00:00
|
|
|
#!/usr/bin/env bash
|
2024-12-09 18:15:58 +00:00
|
|
|
|
2024-12-09 18:43:23 +00:00
|
|
|
# shellcheck disable=SC1091
|
|
|
|
source "$(dirname "${BASH_SOURCE[0]}")/bash3boilerplate.sh"
|
2024-12-09 18:15:58 +00:00
|
|
|
|
2024-12-09 18:43:23 +00:00
|
|
|
# Load environment variables
|
|
|
|
source "./ResumeVariables.env"
|
2024-12-09 18:15:58 +00:00
|
|
|
|
|
|
|
# Setup globals
|
2024-12-09 18:43:23 +00:00
|
|
|
readonly BUILD_TEMP_DIR="../build-temp"
|
|
|
|
readonly BUILD_OUTPUT_DIR="../build-output"
|
|
|
|
readonly BUILD_YAML_JOB_BOARD="$BUILD_TEMP_DIR/BuildJobBoard.yml"
|
|
|
|
readonly BUILD_YAML_CLIENT_SUBMISSION="$BUILD_TEMP_DIR/BuildClientSubmission.yml"
|
|
|
|
|
|
|
|
readonly CANDIDATE_NAME="$CandidateName"
|
|
|
|
readonly CANDIDATE_LOGO="$CandidateLogo"
|
|
|
|
readonly CANDIDATE_TAGLINE="$CandidateTagline"
|
|
|
|
readonly RESUME_SOURCE_CODE="$ResumeSourceCode"
|
|
|
|
readonly URL_COLOR="$URLCOLOR"
|
|
|
|
readonly PAGE_BACKGROUND="$PAGEBACKGROUND"
|
|
|
|
|
|
|
|
# Expand variables into rendered YAML files
|
|
|
|
./mo "MarkdownResume-BuildTemplateInput-ClientSubmission.yml" > "$BUILD_YAML_CLIENT_SUBMISSION"
|
|
|
|
./mo "MarkdownResume-BuildTemplateInput-JobBoard.yml" > "$BUILD_YAML_JOB_BOARD"
|
2024-12-09 18:15:58 +00:00
|
|
|
|