Make build process more robust

This commit is contained in:
Ben Edgington
2022-12-27 20:27:40 +00:00
parent 34b424ffb7
commit 56d73cf139
2 changed files with 3 additions and 3 deletions

View File

@@ -125,7 +125,7 @@ module.exports.runChecks = (reporter) => {
reporter.info('Unpacking book source...')
try {
execSync(mdSplitter)
execSync(`${mdSplitter} ${sourceMarkdown}`)
} catch (err) {
reporter.error('Failed to unpack book source.')
throw err

View File

@@ -7,8 +7,8 @@ cd "$(dirname "$0")/../../src"
# Build the markdown pages
rm -rf md/pages/
../bin/build/split.pl book.md
../bin/build/split.pl ../$1
# Build the one page annotated spec
rm -f md/annotated.md
../bin/build/annotated.pl book.md > md/annotated.md
../bin/build/annotated.pl ../$1 > md/annotated.md