etherpad-lite/bin/generateJsDoc.sh

25 lines
440 B
Bash
Raw Normal View History

#!/bin/sh
2011-03-26 14:10:41 +01:00
2011-07-30 17:42:13 +02:00
#Move to the folder where ep-lite is installed
cd `dirname $0`
2011-07-30 17:42:13 +02:00
#Was this script started in the bin folder? if yes move out
if [ -d "../bin" ]; then
cd "../"
fi
hash node > /dev/null 2>&1 || {
2011-05-29 22:30:56 +02:00
echo "You need to install node!" >&2
exit 1
}
2011-03-26 14:10:41 +01:00
hash doc.md > /dev/null 2>&1 || {
2011-05-29 22:30:56 +02:00
echo "You need to install doc.md! npm install -g doc.md" >&2
exit 1
}
2011-03-26 14:10:41 +01:00
echo "empty doc folder..."
rm -rf doc/jsdoc/*
2011-05-29 22:30:56 +02:00
doc.md node doc/jsdoc