aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@debian.org>2017-02-06 11:58:26 -0500
committerRyan Kavanagh <rak@debian.org>2017-02-06 11:58:26 -0500
commit921597f06485d9e007b893c1d931dd000f600897 (patch)
tree218a7ddeee2b5cf7347f2727f89730b3570f59e2 /Makefile
parentMore filters for imap (diff)
Allow substitutions of strings containing spaces
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 387ebfa..2f602c7 100755
--- a/Makefile
+++ b/Makefile
@@ -84,7 +84,7 @@ GLOBAL_FILES = \
.zlogout \
bin/ \
-get-val = $(shell awk '{if (match($$0, /$1/)) { print $$2 } }' $(SUBSTS_FILE))
+get-val = $(shell egrep '^$1' $(SUBSTS_FILE) | cut -f2- -d' ')
get-sed-args = $(foreach var,$($(1)),-e 's|$(var)|$(call get-val,$(var))|g')
CURRENT_BRANCH = $(shell git branch --no-color | colrm 1 2)