pad.pub0.org/bin/generateJsDoc.sh

21 lines
314 B
Bash
Raw Normal View History

2011-05-29 20:30:56 +00:00
#!/bin/bash
2011-03-26 13:10:41 +00:00
if [ -d "../bin" ]; then
cd "../"
fi
2011-05-29 20:30:56 +00:00
type -P node &>/dev/null || {
echo "You need to install node!" >&2
exit 1
}
2011-03-26 13:10:41 +00:00
2011-05-29 20:30:56 +00:00
type -P doc.md &>/dev/null || {
echo "You need to install doc.md! npm install -g doc.md" >&2
exit 1
}
2011-03-26 13:10:41 +00:00
echo "empty doc folder..."
rm -rf doc/jsdoc/*
2011-05-29 20:30:56 +00:00
doc.md node doc/jsdoc