diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2019-06-19 13:07:37 +0200 |
---|---|---|
committer | Daniel Willmann <dwillmann@sysmocom.de> | 2019-06-19 13:08:56 +0200 |
commit | 6887ffff18d4fbc5ed08593fe8d70573745e3811 (patch) | |
tree | 3e25dab2fb17403015657699b8a1ff22226b847c /openbsc | |
parent | 6a61bc3089e229b575851ca5d99e893c81f59562 (diff) |
manuals: Add script to regenerate counter/vty documentation
Related: OS#1700
Change-Id: I3e6e6603300d2d7f6221720fa7ce35b3a6aa0b7a
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/doc/Makefile.am | 2 | ||||
-rwxr-xr-x | openbsc/doc/regen_doc.sh | 21 |
2 files changed, 23 insertions, 0 deletions
diff --git a/openbsc/doc/Makefile.am b/openbsc/doc/Makefile.am index 5a231074c..ac3c914cf 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 000000000..5552dec2c --- /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" |