diff options
author | Alexander Foremny <aforemny@posteo.de> | 2023-09-06 11:03:36 +0200 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2023-09-06 11:38:38 +0200 |
commit | 62df7214a1b6602bec3e355a0729de2968db6504 (patch) | |
tree | 0bd9e4eb965e40a3c9582371b0b45f9671b0320a /src/extract-sh.sh | |
parent | ea5ff5547b365964ff2c0215caa3a2a020b6d7ed (diff) |
add support for .sh files
Diffstat (limited to 'src/extract-sh.sh')
-rwxr-xr-x | src/extract-sh.sh | 8 |
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 "$@" |