aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-11-17 11:51:37 -0300
committerEuAndreh <eu@euandre.org>2022-11-17 11:52:23 -0300
commit3637e8adc4f96dc6971475c4715ff898ed34cc52 (patch)
treeb046c387def4dae32e1799d3cbbb901b33bbc5c3
parentUse opt/bin-dirs/ as a registry of extra manual bin directories (diff)
downloaddotfiles-3637e8adc4f96dc6971475c4715ff898ed34cc52.tar.gz
dotfiles-3637e8adc4f96dc6971475c4715ff898ed34cc52.tar.xz
Makefile: Exclude symlinks from "git ls-files" listing
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a9df1f2..9907b46 100644
--- a/Makefile
+++ b/Makefile
@@ -90,11 +90,13 @@ $(lisp-images): $(XDG_CONFIG_HOME)/lisp-cli/init.lisp bin/cl bin/li
check-shellcheck:
git ls-files | \
+ sor 'test -f' | \
xargs awk '/^#!\/bin\/sh$$/ { print FILENAME } { nextfile }' | \
xargs shellcheck -x
check-perlcritic:
git ls-files | \
+ sor 'test -f' | \
xargs awk '/^#!\/usr\/bin\/env perl$$/ { print FILENAME } { nextfile }' | \
xargs perlcritic --exclude=subroutine