Add "pull" recipe to update repo files from live ones
authorSiraaj Khandkar <siraaj@khandkar.net>
Sun, 12 Apr 2020 03:03:11 +0000 (23:03 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Sun, 12 Apr 2020 03:03:11 +0000 (23:03 -0400)
Makefile

index 48a2292..0051363 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@ DEPS := $(wildcard deps/*)
     deps \
     home \
     diff \
+    pull \
     mpdconf \
     pkgs_brew_cask_install \
     pkgs_brew_install \
@@ -131,6 +132,11 @@ diff:
        | sed -z 's/^home\///g' \
        | xargs -0 -I% sh -c 'echo %; diff --color=always ~/% home/%'
 
+pull:
+       find home -type f -print0 \
+       | sed -z 's/^home\///g' \
+       | xargs -0 -I% sh -c 'diff -q ~/% home/% > /dev/null || cp ~/% home/%'
+
 clean:
        rm -rf ./debfiles
        cd src && make clean
This page took 0.027769 seconds and 4 git commands to generate.