To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / deploy / provision.d / 120-docgen.sh @ 1602:b22e234c3c7b
History | View | Annotate | Download (986 Bytes)
| 1 | 1590:c18460da6620 | Chris | #!/bin/bash |
|---|---|---|---|
| 2 | |||
| 3 | set -e |
||
| 4 | |||
| 5 | 1596:45b0571b684d | Chris | # 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 | 1590:c18460da6620 | Chris | |
| 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 | 1593:83412a0a2389 | Chris | 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 | 1590:c18460da6620 | Chris | chown code.www-data docgen/* |
| 39 | chmod +x docgen/*.sh |