Mercurial > hg > soundsoftware-site
annotate deploy/provision.d/120-docgen.sh @ 1628:9c5f8e24dadc live tip
Quieten this cron script
author | Chris Cannam |
---|---|
date | Tue, 25 Aug 2020 11:38:49 +0100 |
parents | 45b0571b684d |
children |
rev | line source |
---|---|
Chris@1590 | 1 #!/bin/bash |
Chris@1590 | 2 |
Chris@1590 | 3 set -e |
Chris@1590 | 4 |
Chris@1596 | 5 # Copy docgen scripts, including the generated scripts with |
Chris@1596 | 6 # interpolated API key etc, to the directory they will be run from. |
Chris@1596 | 7 |
Chris@1596 | 8 # These are run from cron jobs to do the (currently daily) update of |
Chris@1596 | 9 # extracted documentation from Doxygen, Javadoc, and MATLAB, and to |
Chris@1596 | 10 # enable displaying them with the redmine_embedded plugin. (The API |
Chris@1596 | 11 # key is needed to automatically switch on the embedded module for a |
Chris@1596 | 12 # project the first time its docs are extracted.) |
Chris@1590 | 13 |
Chris@1590 | 14 cd /var/www/code |
Chris@1590 | 15 |
Chris@1590 | 16 mkdir -p docgen |
Chris@1590 | 17 |
Chris@1590 | 18 for file in \ |
Chris@1590 | 19 doxysafe.pl \ |
Chris@1590 | 20 extract-doxygen.sh \ |
Chris@1590 | 21 extract-javadoc.sh \ |
Chris@1590 | 22 extract-matlabdocs.sh \ |
Chris@1590 | 23 matlab-docs.conf \ |
Chris@1590 | 24 matlab-docs-credit.html \ |
Chris@1590 | 25 matlab-docs.pl ; do |
Chris@1590 | 26 if [ ! -f docgen/"$file" ]; then |
Chris@1590 | 27 cp extra/soundsoftware/"$file" docgen/ |
Chris@1590 | 28 fi |
Chris@1590 | 29 done |
Chris@1590 | 30 |
Chris@1593 | 31 for file in \ |
Chris@1593 | 32 extract-docs.sh ; do |
Chris@1593 | 33 if [ ! -f docgen/"$file" ]; then |
Chris@1593 | 34 cp deploy/config/"$file".gen docgen/"$file" |
Chris@1593 | 35 fi |
Chris@1593 | 36 done |
Chris@1593 | 37 |
Chris@1590 | 38 chown code.www-data docgen/* |
Chris@1590 | 39 chmod +x docgen/*.sh |
Chris@1590 | 40 |