summaryrefslogtreecommitdiff
path: root/bin/generateJsDoc.sh
blob: 1667c1ccc16fe1ca6b28a144ab9cc95941e46e9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

#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
if [ -d "../bin" ]; then
  cd "../"
fi

hash node > /dev/null 2>&1 || { 
  echo "You need to install node!" >&2
  exit 1 
}

hash doc.md > /dev/null 2>&1 || { 
  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