etherpad-lite/bin/generateJsDoc.sh

21 lines
314 B
Bash
Executable File

#!/bin/bash
if [ -d "../bin" ]; then
cd "../"
fi
type -P node &>/dev/null || {
echo "You need to install node!" >&2
exit 1
}
type -P doc.md &>/dev/null || {
echo "You need to install doc.md! npm install -g doc.md" >&2
exit 1
}
echo "empty doc folder..."
rm -rf doc/jsdoc/*
doc.md node doc/jsdoc