aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2023-04-25 12:24:25 +0200
committerOliver Smith <osmith@sysmocom.de>2023-04-26 10:13:10 +0200
commit4bd8942f4dfdad08e580431c555597eadcabdf25 (patch)
tree4bdeed29ce6eee76d541f72157bcb8de905a7621
parent684a8f2f9cc120c2775327f833b164c119fbbfd8 (diff)
publish-manuals-for-tags: enable IU/PFCP VTY cmds
Enable configure options to build manuals with all VTY commands in the script that builds manuals for tagged releases. Related: OS#6013 Change-Id: I9685857348e3b38f13acc1429c7a49fb9e5d92f3
-rwxr-xr-xscripts/manuals/publish-manuals-for-tags.sh16
1 files changed, 15 insertions, 1 deletions
diff --git a/scripts/manuals/publish-manuals-for-tags.sh b/scripts/manuals/publish-manuals-for-tags.sh
index b40b602..99e117c 100755
--- a/scripts/manuals/publish-manuals-for-tags.sh
+++ b/scripts/manuals/publish-manuals-for-tags.sh
@@ -213,6 +213,19 @@ check_ssh_auth_sock() {
fi
}
+# Additional configure options to use, so manuals include all VTY commands
+# $1: repo name
+get_configure_opts_from_repo_name() {
+ case "$1" in
+ osmo-hnbgw)
+ echo "--enable-pfcp"
+ ;;
+ osmo-msc|osmo-sgsn)
+ echo "--enable-iu"
+ ;;
+ esac
+}
+
# $1: docs dir
get_repo_name_from_docs_dir() {
case "$1" in
@@ -323,6 +336,7 @@ clone_repo() {
build_publish_manuals() {
local repo="$1"
local tag="$2"
+ local configure_opts="--enable-manuals $(get_configure_opts_from_repo_name "$repo")"
echo "$LOG_PREFIX Building manuals"
if ! docker run \
@@ -361,7 +375,7 @@ build_publish_manuals() {
;;
*)
su build -c \"autoreconf -fi\"
- su build -c \"./configure --enable-manuals\"
+ su build -c \"./configure $configure_opts\"
su build -c \"make -j$(nproc)\"
;;
esac