; Simplify admin/run-codespell
* admin/run-codespell (emacs_run_codespell): Simplify. Use env in shebang to use more recent bash on macOS.
This commit is contained in:
parent
fa1470d069
commit
ce43d13593
1 changed files with 17 additions and 17 deletions
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
### run-codespell - run codespell on Emacs
|
### run-codespell - run codespell on Emacs
|
||||||
|
|
||||||
## Copyright (C) 2023-2025 Free Software Foundation, Inc.
|
## Copyright (C) 2023-2025 Free Software Foundation, Inc.
|
||||||
|
@ -40,22 +40,22 @@ CODESPELL_DICTIONARY="${CODESPELL_DIR}/codespell.dictionary"
|
||||||
emacs_run_codespell ()
|
emacs_run_codespell ()
|
||||||
{
|
{
|
||||||
git ls-files |\
|
git ls-files |\
|
||||||
grep -v -E -e '^(lib|m4)/.*' |\
|
grep --line-buffered -v -E -e "^(lib|m4)/.*|\
|
||||||
grep -v -E -e '^admin/(charsets|codespell|unidata)/.*' |\
|
^admin/(charsets|codespell|unidata)/.*|\
|
||||||
grep -v -E -e '^doc/lispref/spellfile$' |\
|
^doc/lispref/spellfile$|\
|
||||||
grep -v -E -e '^doc/misc/texinfo.tex$' |\
|
^doc/misc/texinfo.tex$|\
|
||||||
grep -v -E -e '^doc/translations/.*' |\
|
^doc/translations/.*|\
|
||||||
grep -v -E -e '^etc/(AUTHORS|HELLO|publicsuffix.txt)$' |\
|
^etc/(AUTHORS|HELLO|publicsuffix.txt)$|\
|
||||||
grep -v -E -e '^etc/refcards/(cs|de|fr|pl|pt|sk)-.+.tex$' |\
|
^etc/refcards/(cs|de|fr|pl|pt|sk)-.+.tex$|\
|
||||||
grep -v -E -e '^etc/tutorials/TUTORIAL\..+' |\
|
^etc/tutorials/TUTORIAL\..+|\
|
||||||
grep -v -E -e '^leim/(MISC|SKK)-DIC/.*' |\
|
^leim/(MISC|SKK)-DIC/.*|\
|
||||||
grep -v -E -e '^lisp/language/ethio-util.el' |\
|
^lisp/language/ethio-util.el|\
|
||||||
grep -v -E -e '^lisp/ldefs-boot.el' |\
|
^lisp/ldefs-boot.el|\
|
||||||
grep -v -E -e '^lisp/leim/.*' |\
|
^lisp/leim/.*|\
|
||||||
grep -v -E -e '^test/lisp/erc/resources/.*' |\
|
^test/lisp/erc/resources/.*|\
|
||||||
grep -v -E -e '^test/lisp/net/puny-resources/IdnaTestV2.txt' |\
|
^test/lisp/net/puny-resources/IdnaTestV2.txt|\
|
||||||
grep -v -E -e '^test/manual/(etags|indent)/.*' |\
|
^test/manual/(etags|indent)/.*|\
|
||||||
grep -v -E -e '^test/src/regex-resources/.*' |\
|
^test/src/regex-resources/.*" |\
|
||||||
xargs codespell \
|
xargs codespell \
|
||||||
--config "$CODESPELL_RC" \
|
--config "$CODESPELL_RC" \
|
||||||
--exclude-file "$CODESPELL_EXCLUDE" \
|
--exclude-file "$CODESPELL_EXCLUDE" \
|
||||||
|
|
Loading…
Add table
Reference in a new issue