<p>osmith has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/12090">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">contrib/jenkins.sh: build and publish manuals<br><br>Install osmo-gsm-manuals like any other dependency. Add the bin subdir<br>of the installed files to PATH, so osmo-gsm-manuals-check-depends can<br>be used by ./configure --enable-manuals.<br><br>Add a PUBLISH environment variable, which will be set by the<br>master-builds Jenkins job. When it is set, upload the generated PDFs.<br><br>This project is usually built in various configurations. Add<br>WITH_MANUALS to only build the manuals in one of these configurations,<br>and describe all input parameters on top of jenkins.sh.<br><br>Related: OS#3385<br>Change-Id: Ia5b112fc1663b78800d3c2c4ff2a0771cf5af11b<br>---<br>M contrib/jenkins.sh<br>1 file changed, 17 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/90/12090/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh</span><br><span>index 5f81978..f065910 100755</span><br><span>--- a/contrib/jenkins.sh</span><br><span>+++ b/contrib/jenkins.sh</span><br><span>@@ -1,5 +1,12 @@</span><br><span> #!/bin/sh</span><br><span> # jenkins build helper script for osmo-pcu.  This is how we build on jenkins.osmocom.org</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# environment variables:</span><br><span style="color: hsl(120, 100%, 40%);">+# * with_dsp: the DSP to configure ("sysmo", "lc15" or "none")</span><br><span style="color: hsl(120, 100%, 40%);">+# * with_vty: enable VTY tests if set to "True"</span><br><span style="color: hsl(120, 100%, 40%);">+# * WITH_MANUALS: build manual PDFs if set to "True"</span><br><span style="color: hsl(120, 100%, 40%);">+# * PUBLISH: upload manuals after building if set to "1" (ignored without WITH_MANUALS = "True")</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span> </span><br><span> if ! [ -x "$(command -v osmo-build-dep.sh)" ]; then</span><br><span>    echo "Error: We need to have scripts/osmo-deps.sh from http://git.osmocom.org/osmo-ci/ in PATH !"</span><br><span>@@ -65,6 +72,12 @@</span><br><span> </span><br><span> export PKG_CONFIG_PATH="$inst/lib/pkgconfig:$PKG_CONFIG_PATH"</span><br><span> export LD_LIBRARY_PATH="$inst/lib"</span><br><span style="color: hsl(120, 100%, 40%);">+export PATH="$inst/bin:$PATH"</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+if [ "$WITH_MANUALS" = "True" ]; then</span><br><span style="color: hsl(120, 100%, 40%);">+  osmo-build-dep.sh osmo-gsm-manuals</span><br><span style="color: hsl(120, 100%, 40%);">+  PCU_CONFIG="$PCU_CONFIG --enable-manuals"</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span> </span><br><span> set +x</span><br><span> echo</span><br><span>@@ -81,4 +94,8 @@</span><br><span>   $MAKE distcheck \</span><br><span>   || cat-testlogs.sh</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+if [ "$WITH_MANUALS" = "True" ] && [ "$PUBLISH" = "1" ]; then</span><br><span style="color: hsl(120, 100%, 40%);">+  make -C "$base/doc/manuals" publish</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> osmo-clean-workspace.sh</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/12090">change 12090</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/12090"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-pcu </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ia5b112fc1663b78800d3c2c4ff2a0771cf5af11b </div>
<div style="display:none"> Gerrit-Change-Number: 12090 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>