From 43c5b7023bbb3f785efd64617ff750920f430a22 Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Wed, 19 Jun 2019 14:21:28 +0200 Subject: manuals: Add script to regenerate vty/counter documentation Change-Id: I8ee63a3da532285def8de7fe5e90873152adb21e Related: OS#1700 --- doc/manuals/regen_doc.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 doc/manuals/regen_doc.sh (limited to 'doc/manuals/regen_doc.sh') diff --git a/doc/manuals/regen_doc.sh b/doc/manuals/regen_doc.sh new file mode 100755 index 000000000..d75843669 --- /dev/null +++ b/doc/manuals/regen_doc.sh @@ -0,0 +1,17 @@ +#!/bin/sh -x + +if [ -z "$DOCKER_PLAYGROUND" ]; then + echo "You need to set DOCKER_PLAYGROUND" + exit 1 +fi + +SCRIPT=$(realpath "$0") +MANUAL_DIR=$(dirname "$SCRIPT") + +COMMIT=${COMMIT:-$(git log -1 --format=format:%H)} + +cd "$DOCKER_PLAYGROUND/scripts" || exit 1 + +OSMO_SGSN_BRANCH=$COMMIT ./regen_doc.sh osmo-sgsn 4245 \ + "$MANUAL_DIR/chapters/counters_generated.adoc" \ + "$MANUAL_DIR/vty/sgsn_vty_reference.xml" -- cgit v1.2.3