aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorStefan Kangas2025-01-11 07:09:23 +0100
committerStefan Kangas2025-01-11 07:14:35 +0100
commitce43d13593a44ba36ba6702cf276fef8711ab738 (patch)
treeb1354cfd75b7e1f6f8fb6a4f004d32b3f242b458 /admin
parentfa1470d0699172e0913290c78c66da293aa43f89 (diff)
downloademacs-ce43d13593a44ba36ba6702cf276fef8711ab738.tar.gz
emacs-ce43d13593a44ba36ba6702cf276fef8711ab738.zip
; Simplify admin/run-codespell
* admin/run-codespell (emacs_run_codespell): Simplify. Use env in shebang to use more recent bash on macOS.
Diffstat (limited to 'admin')
-rwxr-xr-xadmin/run-codespell34
1 files changed, 17 insertions, 17 deletions
diff --git a/admin/run-codespell b/admin/run-codespell
index be90313da1e..f5728f831f0 100755
--- a/admin/run-codespell
+++ b/admin/run-codespell
@@ -1,4 +1,4 @@
1#!/bin/bash 1#!/usr/bin/env bash
2### run-codespell - run codespell on Emacs 2### run-codespell - run codespell on Emacs
3 3
4## Copyright (C) 2023-2025 Free Software Foundation, Inc. 4## Copyright (C) 2023-2025 Free Software Foundation, Inc.
@@ -40,22 +40,22 @@ CODESPELL_DICTIONARY="${CODESPELL_DIR}/codespell.dictionary"
40emacs_run_codespell () 40emacs_run_codespell ()
41{ 41{
42 git ls-files |\ 42 git ls-files |\
43 grep -v -E -e '^(lib|m4)/.*' |\ 43 grep --line-buffered -v -E -e "^(lib|m4)/.*|\
44 grep -v -E -e '^admin/(charsets|codespell|unidata)/.*' |\ 44^admin/(charsets|codespell|unidata)/.*|\
45 grep -v -E -e '^doc/lispref/spellfile$' |\ 45^doc/lispref/spellfile$|\
46 grep -v -E -e '^doc/misc/texinfo.tex$' |\ 46^doc/misc/texinfo.tex$|\
47 grep -v -E -e '^doc/translations/.*' |\ 47^doc/translations/.*|\
48 grep -v -E -e '^etc/(AUTHORS|HELLO|publicsuffix.txt)$' |\ 48^etc/(AUTHORS|HELLO|publicsuffix.txt)$|\
49 grep -v -E -e '^etc/refcards/(cs|de|fr|pl|pt|sk)-.+.tex$' |\ 49^etc/refcards/(cs|de|fr|pl|pt|sk)-.+.tex$|\
50 grep -v -E -e '^etc/tutorials/TUTORIAL\..+' |\ 50^etc/tutorials/TUTORIAL\..+|\
51 grep -v -E -e '^leim/(MISC|SKK)-DIC/.*' |\ 51^leim/(MISC|SKK)-DIC/.*|\
52 grep -v -E -e '^lisp/language/ethio-util.el' |\ 52^lisp/language/ethio-util.el|\
53 grep -v -E -e '^lisp/ldefs-boot.el' |\ 53^lisp/ldefs-boot.el|\
54 grep -v -E -e '^lisp/leim/.*' |\ 54^lisp/leim/.*|\
55 grep -v -E -e '^test/lisp/erc/resources/.*' |\ 55^test/lisp/erc/resources/.*|\
56 grep -v -E -e '^test/lisp/net/puny-resources/IdnaTestV2.txt' |\ 56^test/lisp/net/puny-resources/IdnaTestV2.txt|\
57 grep -v -E -e '^test/manual/(etags|indent)/.*' |\ 57^test/manual/(etags|indent)/.*|\
58 grep -v -E -e '^test/src/regex-resources/.*' |\ 58^test/src/regex-resources/.*" |\
59 xargs codespell \ 59 xargs codespell \
60 --config "$CODESPELL_RC" \ 60 --config "$CODESPELL_RC" \
61 --exclude-file "$CODESPELL_EXCLUDE" \ 61 --exclude-file "$CODESPELL_EXCLUDE" \