etherpad-lite/bin/generateJsDoc.sh
2011-05-29 21:53:14 +01:00

20 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