aboutsummaryrefslogtreecommitdiffstats
path: root/core/core.mk
diff options
context:
space:
mode:
authorMartin Björklund <[email protected]>2020-11-26 09:46:04 +0100
committerLoïc Hoguin <[email protected]>2023-05-12 17:24:45 +0200
commitb9676cb3fd1f71fef34d5f151baba100d77072d4 (patch)
tree7042cfb3c7743f7e0525136f1786901b1550d7f0 /core/core.mk
parent4cdab1076b9917ba431fcc1cf0a444e00407b056 (diff)
downloaderlang.mk-b9676cb3fd1f71fef34d5f151baba100d77072d4.tar.gz
erlang.mk-b9676cb3fd1f71fef34d5f151baba100d77072d4.tar.bz2
erlang.mk-b9676cb3fd1f71fef34d5f151baba100d77072d4.zip
Ignore files with '#' in their names, e.g. emacs lock files
Also remove usage of grep for ignoring files since find can do this directly.
Diffstat (limited to 'core/core.mk')
-rw-r--r--core/core.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/core.mk b/core/core.mk
index e7bf579..250a2eb 100644
--- a/core/core.mk
+++ b/core/core.mk
@@ -184,8 +184,8 @@ core_http_get = curl -Lf$(if $(filter-out 0,$(V)),,s)o $(call core_native_path,$
core_eq = $(and $(findstring $(1),$(2)),$(findstring $(2),$(1)))
-# We skip files that contain spaces because they end up causing issues.
-core_find = $(if $(wildcard $1),$(shell find $(1:%/=%) \( -type l -o -type f \) -name $(subst *,\*,$2) | grep -v " "))
+# We skip files that contain spaces or '#' because they end up causing issues.
+core_find = $(if $(wildcard $1),$(shell find $(1:%/=%) \( -type l -o -type f \) -name $(subst *,\*,$2) -not -name "*[ \#]*"))
core_lc = $(subst A,a,$(subst B,b,$(subst C,c,$(subst D,d,$(subst E,e,$(subst F,f,$(subst G,g,$(subst H,h,$(subst I,i,$(subst J,j,$(subst K,k,$(subst L,l,$(subst M,m,$(subst N,n,$(subst O,o,$(subst P,p,$(subst Q,q,$(subst R,r,$(subst S,s,$(subst T,t,$(subst U,u,$(subst V,v,$(subst W,w,$(subst X,x,$(subst Y,y,$(subst Z,z,$(1)))))))))))))))))))))))))))