aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/check-docs
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/check-docs')
-rwxr-xr-xcontrib/check-docs12
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/check-docs b/contrib/check-docs
index bcc63213..a8187d9b 100755
--- a/contrib/check-docs
+++ b/contrib/check-docs
@@ -17,9 +17,9 @@ if echo . | grep --color . >/dev/null 2>&1; then
fi
fail=0
-sed -nre "$cmd_scd_sed" doc/*.scd | tr ' ' '\n' > "$tmp"
+sed -nE "$cmd_scd_sed" doc/*.scd | tr ' ' '\n' > "$tmp"
for f in $(find commands -type f -name '*.go'); do
- for cmd in $(sed -ne "$cmd_go_sed" "$f"); do
+ for cmd in $(sed -n "$cmd_go_sed" "$f"); do
if ! grep -qFx "$cmd" "$tmp"; then
grep -HnF $grep_color "\"$cmd\"" "$f"
fail=$((fail+1))
@@ -33,9 +33,9 @@ if [ "$fail" -gt 0 ]; then
fi
fail=0
-sed -ne "$cmd_go_sed" $(find commands -type f -name '*.go') | tr ' ' '\n' > "$tmp"
+sed -n "$cmd_go_sed" $(find commands -type f -name '*.go') | tr ' ' '\n' > "$tmp"
for f in doc/*.scd; do
- for cmd in $(sed -nre "$cmd_scd_sed" "$f" | tr ' ' '\n' | sed '/^-/d;/^$/d'); do
+ for cmd in $(sed -nE "$cmd_scd_sed" "$f" | tr ' ' '\n' | sed '/^-/d;/^$/d'); do
if ! grep -qFx "$cmd" "$tmp"; then
grep -Hn $grep_color "^\\*:$cmd\\*" "$f"
fail=$((fail+1))
@@ -49,9 +49,9 @@ if [ "$fail" -gt 0 ]; then
fi
fail=0
-sed -nre 's/^\*([a-z][a-z-]*)\* = .*/\1/p' doc/*.scd > "$tmp"
+sed -nE 's/^\*([a-z][a-z-]*)\* = .*/\1/p' doc/*.scd > "$tmp"
for f in $(find config -type f -name '*.go'); do
- for opt in $(sed -nre 's/.*`ini:"([a-z][a-z-]*)".*/\1/p' $f); do
+ for opt in $(sed -nE 's/.*`ini:"([a-z][a-z-]*)".*/\1/p' $f); do
if ! grep -qFx "$opt" "$tmp"; then
grep -HnF $grep_color "\"$opt\"" "$f"
fail=$((fail+1))