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