Chris@1590: #!/bin/bash Chris@1590: Chris@1590: set -e Chris@1590: Chris@1596: # Copy docgen scripts, including the generated scripts with Chris@1596: # interpolated API key etc, to the directory they will be run from. Chris@1596: Chris@1596: # These are run from cron jobs to do the (currently daily) update of Chris@1596: # extracted documentation from Doxygen, Javadoc, and MATLAB, and to Chris@1596: # enable displaying them with the redmine_embedded plugin. (The API Chris@1596: # key is needed to automatically switch on the embedded module for a Chris@1596: # project the first time its docs are extracted.) Chris@1590: Chris@1590: cd /var/www/code Chris@1590: Chris@1590: mkdir -p docgen Chris@1590: Chris@1590: for file in \ Chris@1590: doxysafe.pl \ Chris@1590: extract-doxygen.sh \ Chris@1590: extract-javadoc.sh \ Chris@1590: extract-matlabdocs.sh \ Chris@1590: matlab-docs.conf \ Chris@1590: matlab-docs-credit.html \ Chris@1590: matlab-docs.pl ; do Chris@1590: if [ ! -f docgen/"$file" ]; then Chris@1590: cp extra/soundsoftware/"$file" docgen/ Chris@1590: fi Chris@1590: done Chris@1590: Chris@1593: for file in \ Chris@1593: extract-docs.sh ; do Chris@1593: if [ ! -f docgen/"$file" ]; then Chris@1593: cp deploy/config/"$file".gen docgen/"$file" Chris@1593: fi Chris@1593: done Chris@1593: Chris@1590: chown code.www-data docgen/* Chris@1590: chmod +x docgen/*.sh Chris@1590: