Skip to content

Commit

Permalink
docbook-build.sh cron script
Browse files Browse the repository at this point in the history
This script is intended to be scheduled with cron for automated builds
of the MantisBT manual.

This is the original version of the script, that was deployed to the
server following the 2017 upgrade.
  • Loading branch information
dregad committed Mar 7, 2021
1 parent 740849b commit 91ce1e6
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docbook-builds.sh
@@ -0,0 +1,27 @@
#!/bin/bash
# MantisBT manuals build

LOGFILE=/var/log/$(basename $0).log

# references to build
refs=origin/master-1.3.x,origin/master

# MantisBT repository
repo=/srv/mantisbt

# Target directory for manuals
docs=/srv/www/docs

# Languages to build (blank = all)
lang=

# Force build
if [[ "$1" = "-f" ]] || [[ "$1" = "--force" ]]
then
force="--force"
fi

echo $(date +"%F %T") ' Building MantisBT manuals' >>$LOGFILE
/srv/mantisbt-tools/docbook-manual-repo.py --all $force --ref=$refs $repo $docs $lang >>$LOGFILE 2>&1
echo $(date +"%F %T") ' Build complete' >>$LOGFILE
echo "--------------------------------------------" >>$LOGFILE

0 comments on commit 91ce1e6

Please sign in to comment.