and it self bootstraps now by using bash. no need ror a git checkout hook to set mo executable. :D
This commit is contained in:
parent
ec16440747
commit
e3ea03999b
@ -24,6 +24,7 @@ export PAGEBACKGROUND="../vendor/git.knownelement.com/ExternalVendorCode/pandoc-
|
|||||||
# Setup globals
|
# Setup globals
|
||||||
############################################################
|
############################################################
|
||||||
|
|
||||||
|
readonly MO_PATH="bash ../vendor/git.knownelement.com/ExternalVendorCode/mo/mo"
|
||||||
readonly BUILD_OUTPUT_DIR="../build-output"
|
readonly BUILD_OUTPUT_DIR="../build-output"
|
||||||
readonly BUILD_TEMP_DIR="../build-temp"
|
readonly BUILD_TEMP_DIR="../build-temp"
|
||||||
readonly BUILDYAML_JOBBOARD="$BUILD_TEMP_DIR/JobBoard.yml"
|
readonly BUILDYAML_JOBBOARD="$BUILD_TEMP_DIR/JobBoard.yml"
|
||||||
@ -51,14 +52,14 @@ rm $ClientSubmissionMSWordOutputFile
|
|||||||
|
|
||||||
# Expand variables into rendered YAML files. These will be used by pandoc to create the output artifacts
|
# Expand variables into rendered YAML files. These will be used by pandoc to create the output artifacts
|
||||||
|
|
||||||
./mo ./BuildTemplate-JobBoard.yml > $BUILDYAML_JOBBOARD
|
$MO_PATH ./BuildTemplate-JobBoard.yml > $BUILDYAML_JOBBOARD
|
||||||
./mo ./BuildTemplate-ClientSubmission.yml > $BUILDYAML_CLIENTSUBMISSION
|
$MO_PATH ./BuildTemplate-ClientSubmission.yml > $BUILDYAML_CLIENTSUBMISSION
|
||||||
|
|
||||||
echo "Combining markdown files into single input file for pandoc..."
|
echo "Combining markdown files into single input file for pandoc..."
|
||||||
|
|
||||||
# Create contact info md file
|
# Create contact info md file
|
||||||
./mo ../Templates/ContactInfo/ContactInfo-JobBoard.md > $BUILD_TEMP_DIR/ContactInfo-JobBoard.md
|
$MO_PATH ../Templates/ContactInfo/ContactInfo-JobBoard.md > $BUILD_TEMP_DIR/ContactInfo-JobBoard.md
|
||||||
./mo ../Templates/ContactInfo/ContactInfo-ClientSubmit.md > $BUILD_TEMP_DIR/ContactInfo-ClientSubmit.md
|
$MO_PATH ../Templates/ContactInfo/ContactInfo-ClientSubmit.md > $BUILD_TEMP_DIR/ContactInfo-ClientSubmit.md
|
||||||
|
|
||||||
#Pull in contact info
|
#Pull in contact info
|
||||||
cat $BUILD_TEMP_DIR/ContactInfo-JobBoard.md >> $JobBoardMarkdownOutputFile
|
cat $BUILD_TEMP_DIR/ContactInfo-JobBoard.md >> $JobBoardMarkdownOutputFile
|
||||||
|
Loading…
Reference in New Issue
Block a user