mirror of
https://github.com/benjaminion/upgrading-ethereum-book.git
synced 2026-01-09 22:47:55 -05:00
Make build process more robust
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user