Change in osmo-gsm-manuals[master]: add *reference.xml arg

osmith gerrit-no-reply at
Wed Nov 21 15:12:54 UTC 2018

osmith has submitted this change and it was merged. ( )

Change subject: add *reference.xml arg
...................................................................... add *reference.xml arg

Pass the path to $(srcdir)/vty/*reference.xml as parameter to instead of assuming that it will be in

This is necessary to make the build scripts work for out-of-tree
builds. Because when building out-of-tree, the source dir and build dir
(the one where the Makefile gets generated, and in which "make" runs),
are not the same anymore. The relative vty/reference.xml path is only
valid in the source dir, not in the build dir. The next commits in this
series have more changes for out-of-tree builds.

Out-of-tree building is necessary for consistency with the other
Osmocom code, which can be built out-of-tree as well. It would be
strange if this did not work anymore as soon as the users enabled
building the manuals.

(moving manuals to project repositories 10/19)

Related: OS#3385
Change-Id: I3dcb49d7705f882bd117088d4e5eab91dd1c7d8c
M build/
M build/
2 files changed, 9 insertions(+), 4 deletions(-)

  Jenkins Builder: Verified
  Pau Espin Pedrol: Looks good to me, approved
  Neels Hofmeyr: Looks good to me, approved

diff --git a/build/ b/build/
index af5388c..cb00648 100644
--- a/build/
+++ b/build/
@@ -37,6 +37,7 @@
 			   $(OSMO_GSM_MANUALS_DIR)/common/chapters/vty.xml \
+		$(srcdir)/vty/*reference.xml \
 		$(OSMO_GSM_MANUALS_DIR)/common/vty_additions.xml \
 	xsltproc $(OSMO_GSM_MANUALS_DIR)/vty_reference.xsl generated/combined.xml \
diff --git a/build/ b/build/
index be234a7..cb18e9e 100755
--- a/build/
+++ b/build/
@@ -1,16 +1,20 @@
+# usage: path/to/merge_doc.xsl path/to/*reference.xml [paths to additional xmls]
+# see
 set -e
-# the first argument should point at libosmocore/doc/vty/merge_doc.xsl
+# first argument: merge_doc.xsl
+# second argument: *reference.xml
+test "$(ls -1 $reference | wc -l)" = "1"
-test "$(ls -1 $reference | wc -l)" = "1"
 set -x
 mkdir -p generated
 cp $reference "$combined"

To view, visit
To unsubscribe, or for help writing mail filters, visit

Gerrit-Project: osmo-gsm-manuals
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I3dcb49d7705f882bd117088d4e5eab91dd1c7d8c
Gerrit-Change-Number: 11801
Gerrit-PatchSet: 3
Gerrit-Owner: osmith <osmith at>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at>
Gerrit-Reviewer: Pau Espin Pedrol <pespin at>
Gerrit-Reviewer: osmith <osmith at>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gerrit-log mailing list