To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / deploy / provision.d / 120-docgen.sh @ 1604:2162f6ff8580

History | View | Annotate | Download (986 Bytes)

1
#!/bin/bash
2

    
3
set -e
4

    
5
# Copy docgen scripts, including the generated scripts with
6
# interpolated API key etc, to the directory they will be run from.
7

    
8
# These are run from cron jobs to do the (currently daily) update of
9
# extracted documentation from Doxygen, Javadoc, and MATLAB, and to
10
# enable displaying them with the redmine_embedded plugin. (The API
11
# key is needed to automatically switch on the embedded module for a
12
# project the first time its docs are extracted.)
13

    
14
cd /var/www/code
15

    
16
mkdir -p docgen
17

    
18
for file in \
19
    doxysafe.pl \
20
    extract-doxygen.sh \
21
    extract-javadoc.sh \
22
    extract-matlabdocs.sh \
23
    matlab-docs.conf \
24
    matlab-docs-credit.html \
25
    matlab-docs.pl ; do
26
    if [ ! -f docgen/"$file" ]; then
27
        cp extra/soundsoftware/"$file" docgen/
28
    fi
29
done
30

    
31
for file in \
32
    extract-docs.sh ; do
33
    if [ ! -f docgen/"$file" ]; then
34
        cp deploy/config/"$file".gen docgen/"$file"
35
    fi
36
done
37

    
38
chown code.www-data docgen/*
39
chmod +x docgen/*.sh
40