diff options
author | Oliver Smith <osmith@sysmocom.de> | 2018-12-07 14:30:26 +0100 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2018-12-12 14:07:39 +0100 |
commit | 60e402d13a142e4a9587d1ce284e7c49ba2fe1a7 (patch) | |
tree | 426bf36a1c3fa3b022ad4ff45c4078cf76be1206 /contrib | |
parent | 810b696b8d5d0b8a2c8bb0a596d34e43f4de764c (diff) |
contrib/jenkins.sh: build and publish manuals
Add new environment variables WITH_MANUALS and PUBLISH to control if
the manuals should be built and uploaded. Describe all environment vars
on top of the file.
Related: OS#3385
Change-Id: I856e4bc71e1b648de5f27d4044aa60bd0b45e0f5
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/jenkins.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh index f886c218..aa02b289 100755 --- a/contrib/jenkins.sh +++ b/contrib/jenkins.sh @@ -1,4 +1,10 @@ #!/bin/sh +# jenkins build helper script for osmocom-bb. This is how we build on jenkins.osmocom.org +# +# environment variables: +# * WITH_MANUALS: build manual PDFs if set to "1" +# * PUBLISH: upload manuals after building if set to "1" (ignored without WITH_MANUALS = "1") +# set -ex @@ -35,4 +41,15 @@ for dir in gprsdecode gsmmap layer23 osmocon trxcon virt_phy; do make done +# Build and publish manuals +if [ "$WITH_MANUALS" = "1" ]; then + osmo-build-dep.sh osmo-gsm-manuals + make -C "$base/doc/manuals" + make -C "$base/doc/manuals" check + + if [ "$PUBLISH" = "1" ]; then + make -C "$base/doc/manuals" publish + fi +fi + osmo-clean-workspace.sh |