17 lines
175 B
Bash
Executable file
17 lines
175 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
if [ -f ./mdbook ]; then
|
|
./mdbook build
|
|
else
|
|
mdbook build
|
|
fi
|
|
|
|
if [ ! -d node_modules ]; then
|
|
npm install
|
|
fi
|
|
|
|
./build.js
|