aboutsummaryrefslogtreecommitdiffstats
path: root/build/vty_reference_combine.sh
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2018-11-14 15:55:10 +0100
committerOliver Smith <osmith@sysmocom.de>2018-11-21 14:29:11 +0100
commit673e2dc48189e113d253738545b0430ab3a2d40c (patch)
tree03fc22c9dfe6282de7f4e3c3a6622140377a47f4 /build/vty_reference_combine.sh
parenta3f9a1e909c50c22fcadf3ed4f67b6b082e5b8e1 (diff)
vty_reference_combine.sh: add *reference.xml arg
Pass the path to $(srcdir)/vty/*reference.xml as parameter to vty_reference_combine.sh instead of assuming that it will be in ./vty/*reference.xml. 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
Diffstat (limited to 'build/vty_reference_combine.sh')
-rwxr-xr-xbuild/vty_reference_combine.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/build/vty_reference_combine.sh b/build/vty_reference_combine.sh
index be234a7..cb18e9e 100755
--- a/build/vty_reference_combine.sh
+++ b/build/vty_reference_combine.sh
@@ -1,16 +1,20 @@
#!/bin/sh
+# usage: vty_reference_combine.sh path/to/merge_doc.xsl path/to/*reference.xml [paths to additional xmls]
+# see Makefile.vty-reference.inc
set -e
-# the first argument should point at libosmocore/doc/vty/merge_doc.xsl
+# first argument: merge_doc.xsl
MERGE_DOC="$1"
shift
+# second argument: *reference.xml
+reference="$1"
+test "$(ls -1 $reference | wc -l)" = "1"
+shift
+
combined="generated/combined.xml"
combine_src="generated/combine_src.xml"
-reference="vty/*reference.xml"
-test "$(ls -1 $reference | wc -l)" = "1"
-
set -x
mkdir -p generated
cp $reference "$combined"