File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,21 @@ CONF_FILES := $(shell sed "s/\#.*//; /^[[:space:]]*$$/d" setup/files.txt)
19
19
20
20
# CODE_FILES := $(shell find . -type f -name '*.sh' -o -type f -name '.bash*' | sort)
21
21
# CODE_FILES := $(shell git ls-files | grep -E -e '\.sh$$' -e '\.bash[^/]*$$' -e '\.groovy$$' | sort)
22
- CODE_FILES = $(shell if type git >/dev/null 2>&1; then git ls-files | grep -E -e '\.sh$$' -e '\.bash[^/]* $$' -e '\.groovy$$' | sort | while read -r filepath; do test -f "$$filepath" || continue; test -d "$$filepath" && continue; test -L "$$filepath" && continue; echo "$$filepath"; done; else find . -type f; fi)
22
+ CODE_FILES = $(shell \
23
+ if type git >/dev/null 2>&1; then \
24
+ git ls-files | \
25
+ grep -E -e '\.sh$$' -e '\.bash[^/]* $$' -e '\.groovy$$' | \
26
+ sort | \
27
+ while read -r filepath; do \
28
+ test -f "$$filepath" || continue; \
29
+ test -d "$$filepath" && continue; \
30
+ test -L "$$filepath" && continue; \
31
+ echo "$$filepath"; \
32
+ done; \
33
+ else \
34
+ find . -type f; \
35
+ fi \
36
+ )
23
37
24
38
25
39
BASH_PROFILE_FILES := $(shell echo .bashrc .bash_profile .bash.d/* .sh)
You can’t perform that action at this time.
0 commit comments