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 @ 1595:98384d0defa0

History | View | Annotate | Download (690 Bytes)

1
#!/bin/bash
2

    
3
set -e
4

    
5
# Copy docgen scripts to the place they actually live. This is
6
# particularly badly managed, since the target location is actually
7
# within the repo already
8

    
9
cd /var/www/code
10

    
11
mkdir -p docgen
12

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

    
26
for file in \
27
    extract-docs.sh ; do
28
    if [ ! -f docgen/"$file" ]; then
29
        cp deploy/config/"$file".gen docgen/"$file"
30
    fi
31
done
32

    
33
chown code.www-data docgen/*
34
chmod +x docgen/*.sh
35