summaryrefslogtreecommitdiff
path: root/cad/src/tools/SEMBot/updateNV1_Documentation.sh
blob: cc2194140b8327a7b15027a98a38027c31e5b001 (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

# Usage: ./updateNV1_Documentation.sh &>NV1_Docs.log

# Create timestamp
echo `date +"%a %b %e %T EDT %Y"` > NV1_Docs.timestamp

# Remove files used to check for command successes
rm -rf SVN-D/cad/plugins/NanoVision-1/docs/api/html

# Run doxygen
pushd SVN-D/cad/plugins/NanoVision-1/src/Documentation/
mkdir -p ../../docs/api
/usr/bin/doxygen doxygen.cfg
popd

# Check if doxygen was successful by checking for the existence of the file we
# deleted earlier.
if [ ! -e SVN-D/cad/plugins/NanoVision-1/docs/api/html/index.html ]; then
  RESULT="<font color=red>Failed</font>"
else
  RESULT=Success
fi
echo ${RESULT} > NV1_Docs.result