diff options
Diffstat (limited to 'utils')
| -rwxr-xr-x | utils/filtron.sh | 32 | ||||
| -rwxr-xr-x | utils/searx.sh | 1 |
2 files changed, 27 insertions, 6 deletions
diff --git a/utils/filtron.sh b/utils/filtron.sh index 208166fda..d2be60737 100755 --- a/utils/filtron.sh +++ b/utils/filtron.sh @@ -186,11 +186,7 @@ main() { debug-off) echo; disable_debug ;; *) usage "$_usage"; exit 42;; esac ;; - doc) - echo - echo ".. generic utils/filtron.sh documentation" - ;; - + doc) rst-doc ;; *) usage "unknown or missing command $1"; exit 42;; esac } @@ -469,6 +465,32 @@ This removes apache site ${APACHE_FILTRON_SITE}." apache_remove_site "$APACHE_FILTRON_SITE" } +rst-doc() { + + eval "echo \"$(< "${REPO_ROOT}/docs/build-templates/filtron.rst")\"" + + echo -e "\n.. START install systemd unit" + cat <<EOF +.. tabs:: + + .. group-tab:: systemd + + .. code:: bash + +EOF + eval "echo \"$(< "${TEMPLATES}/${SERVICE_SYSTEMD_UNIT}")\"" | prefix_stdout " " + echo -e "\n.. END install systemd unit" + + # for DIST_NAME in ubuntu-20.04 arch fedora; do + # ( + # DIST_ID=${DIST_NAME%-*} + # DIST_VERS=${DIST_NAME#*-} + # [[ $DIST_VERS =~ $DIST_ID ]] && DIST_VERS= + # # ... + # ) + # done +} + # ---------------------------------------------------------------------------- main "$@" # ---------------------------------------------------------------------------- diff --git a/utils/searx.sh b/utils/searx.sh index 981c498fc..5b118478e 100755 --- a/utils/searx.sh +++ b/utils/searx.sh @@ -248,7 +248,6 @@ main() { *) usage "$_usage"; exit 42;; esac ;; doc) rst-doc;; - *) usage "unknown or missing command $1"; exit 42;; esac } |