Change in openbsc[master]: contrib/jenkins.sh: build and publish manuals

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Wed Dec 12 15:47:03 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/12275 )

Change subject: contrib/jenkins.sh: build and publish manuals
......................................................................

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: I89be11d346d50169282c991235ffc47dacc30b11
---
M contrib/jenkins.sh
1 file changed, 29 insertions(+), 0 deletions(-)

Approvals:
  Pau Espin Pedrol: Looks good to me, approved
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh
index 5bab5bf..7083976 100755
--- a/contrib/jenkins.sh
+++ b/contrib/jenkins.sh
@@ -1,4 +1,13 @@
 #!/bin/sh -ex
+# jenkins build helper script for openbsc.  This is how we build on jenkins.osmocom.org
+#
+# environment variables:
+# * IU: configure 3G support (values: "--enable-iu", "--disable-iu")
+# * MGCP: configure transcoding for MGCP (values: "--enable-mgcp-transcoding", "--disable-mgcp-transcoding")
+# * SMPP: configure the SMPP interface (values: "--enable-smpp", "--disable-smpp")
+# * WITH_MANUALS: build manual PDFs if set to "1"
+# * PUBLISH: upload manuals after building if set to "1" (ignored without WITH_MANUALS = "1")
+#
 
 osmo-clean-workspace.sh
 
@@ -59,4 +68,24 @@
 
 . osmo-build.sh
 
+# Build and publish manuals
+if [ "$WITH_MANUALS" = "1" ]; then
+	# Build all manuals first
+	osmo-build-dep.sh osmo-gsm-manuals
+	for dir in "$base"/manuals/*/; do
+		make -C "$dir"
+	done
+
+	# Run 'make check' for the OsmoNITB manuals.
+	# The other dirs only have VTY references, so there is no 'make check' target for them.
+	make -C "$base/manuals/OsmoNITB" check
+
+	# Publish all at once
+	if [ "$PUBLISH" = "1" ]; then
+		for dir in "$base"/manuals/*/; do
+			make -C "$dir" publish
+		done
+	fi
+fi
+
 osmo-clean-workspace.sh

-- 
To view, visit https://gerrit.osmocom.org/12275
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I89be11d346d50169282c991235ffc47dacc30b11
Gerrit-Change-Number: 12275
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181212/f964b78a/attachment.htm>


More information about the gerrit-log mailing list