|
|
|
@ -10,9 +10,14 @@ cd $(dirname $(dirname $0))
|
|
|
|
|
log "setting up project"
|
|
|
|
|
./scripts/setup.sh || exit 1
|
|
|
|
|
|
|
|
|
|
# Clean up the old files.
|
|
|
|
|
log "cleaning old builds"
|
|
|
|
|
rm -f dmoonfire*
|
|
|
|
|
|
|
|
|
|
# Build the project outputs.
|
|
|
|
|
log "building PDF"
|
|
|
|
|
npm run build:pdf || exit 1
|
|
|
|
|
./node_modules/.bin/mfgames-writing-format build pdf || exit 1
|
|
|
|
|
|
|
|
|
|
log "building EPUB"
|
|
|
|
|
npm run build:epub || exit 1
|
|
|
|
|
./node_modules/.bin/mfgames-writing-format build epub || exit 1
|
|
|
|
|
epubcheck dmoonfire*.epub || exit 1
|
|
|
|
|