aboutsummaryrefslogtreecommitdiffstats
path: root/src/extract-sh.sh
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2023-09-06 11:03:36 +0200
committerLibravatar Alexander Foremny <aforemny@posteo.de>2023-09-06 11:38:38 +0200
commit62df7214a1b6602bec3e355a0729de2968db6504 (patch)
tree0bd9e4eb965e40a3c9582371b0b45f9671b0320a /src/extract-sh.sh
parentea5ff5547b365964ff2c0215caa3a2a020b6d7ed (diff)
add support for .sh files
Diffstat (limited to 'src/extract-sh.sh')
-rwxr-xr-xsrc/extract-sh.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/extract-sh.sh b/src/extract-sh.sh
new file mode 100755
index 0000000..c31df74
--- /dev/null
+++ b/src/extract-sh.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+set -efu
+
+TREE_GREPPER_LANGUAGE=sh \
+TREE_GREPPER_QUERY='((comment)+)' \
+LINE_COMMENT_START='#' \
+"$(dirname "$0")"/extract-generic.sh "$@"