summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2019-06-19 13:07:37 +0200
committerDaniel Willmann <dwillmann@sysmocom.de>2019-06-19 13:08:56 +0200
commit6887ffff18d4fbc5ed08593fe8d70573745e3811 (patch)
tree3e25dab2fb17403015657699b8a1ff22226b847c
parent6a61bc3089e229b575851ca5d99e893c81f59562 (diff)
manuals: Add script to regenerate counter/vty documentationHEADmaster
-rw-r--r--openbsc/doc/Makefile.am2
-rwxr-xr-xopenbsc/doc/regen_doc.sh21
2 files changed, 23 insertions, 0 deletions
diff --git a/openbsc/doc/Makefile.am b/openbsc/doc/Makefile.am
index 5a23107..ac3c914 100644
--- a/openbsc/doc/Makefile.am
+++ b/openbsc/doc/Makefile.am
@@ -1,3 +1,5 @@
SUBDIRS = \
examples \
$(NULL)
+
+EXTRA_DIST = regen_doc.sh
diff --git a/openbsc/doc/regen_doc.sh b/openbsc/doc/regen_doc.sh
new file mode 100755
index 0000000..5552dec
--- /dev/null
+++ b/openbsc/doc/regen_doc.sh
@@ -0,0 +1,21 @@
+#!/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")/../../manuals
+
+COMMIT=${COMMIT:-$(git log -1 --format=format:%H)}
+
+cd "$DOCKER_PLAYGROUND/scripts" || exit 1
+
+OSMO_NITB_BRANCH=$COMMIT ./regen_doc.sh osmo-nitb 4242 \
+ "$MANUAL_DIR/OsmoNITB/chapters/counters_generated.adoc" \
+ "$MANUAL_DIR/OsmoNITB/vty/nitb_vty_reference.xml"
+
+#OSMO_BSCNAT_BRANCH=$COMMIT ./regen_doc.sh osmo-bscnat 4244 \
+# "$MANUAL_DIR/OsmoBSCNAT/chapters/counters_generated.adoc" \
+# "$MANUAL_DIR/OsmoBSCNAT/vty/nat_vty_reference.xml"