aboutsummaryrefslogtreecommitdiff
path: root/docs/_compile/doxygen.sh
blob: 340e1e6b588a1b3445a0f87e4dd996b6d568b715 (plain) (blame)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash

# Command file for Doxygen build

# %1 must be the name of the doxyfile (w/o extension) and folder to create (e.g. blast_api)
if [ "$#" -lt 1 ]; then
  echo "***SCRIPTERROR: The first argument must be the name of the doxyfile (without extension)"
  exit 1
fi

set -e

NAME=$1
EXT="_docs"

DOCS_PATH=../$NAME$EXT

if [ -d $DOCS_PATH ]; then
  rm -rf $DOCS_PATH
fi

DOXYGEN_VERSION=1.8.13-linux-x86_64
echo "Using packman to get doxygen: $DOXYGEN_VERSION" 
source $(dirname "$0")/../../buildtools/packman5/packman install doxygen $DOXYGEN_VERSION

DOXYGEN=$PM_doxygen_PATH/bin/doxygen

# run doxygen
$DOXYGEN $NAME.doxyfile
if [ $? -ne 0 ]; then
  echo "***SCRIPTERROR: doxygen build error"
  exit 1
fi

#unalias cp 2>/dev/null

# copy logo
cp blast_logo.png $DOCS_PATH/files

# copy index.html
cp index.html $DOCS_PATH
#getfacl index.html | setfacl -f - $DOCS_PATH/index.html

echo "***doxygen.sh succeeded"
exit 0