Use GNU grap on Mac
authorSiraaj Khandkar <siraaj@khandkar.net>
Wed, 28 Oct 2020 11:06:00 +0000 (07:06 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Wed, 28 Oct 2020 11:06:21 +0000 (07:06 -0400)
Makefile

index 19014a3..f8087cf 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,9 +3,11 @@ MAKEFLAGS := --no-builtin-rules
 DEPS := $(wildcard deps/*)
 
 ifeq ($(shell uname),Darwin)
+       GREP := ggrep
        SED := gsed
        DIFF := $(shell gls -t1 /usr/local/Cellar/diffutils/*/bin/diff | head -1)
 else
+       GREP := grep
        SED  := sed
        DIFF := diff
 endif
@@ -41,7 +43,7 @@ home: mpdconf compiled
        cp -Rp bin $(HOME)/
        # Limit depth because directories are copied recursively:
        find home -maxdepth 1 -print0 \
-       | grep -zv '^home$$' \
+       | $(GREP) -zv '^home$$' \
        | xargs -0 -I% cp -Rp % ~
 
 mpdconf:
This page took 0.032248 seconds and 4 git commands to generate.