X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=Makefile;h=b72f1f94dde1851fd3db52a5050664eba1114d5a;hb=e2dd436b59bf5053dd3962526cb50b7aa59110d3;hp=7f3ef9162faf20d409a2f08692e98901e82e041b;hpb=2a8bb767ed0afdb631b7bf30afb235c1120116c6;p=khome.git diff --git a/Makefile b/Makefile index 7f3ef91..b72f1f9 100644 --- a/Makefile +++ b/Makefile @@ -158,6 +158,7 @@ $(foreach d,$(DEPS),$(eval $(call GEN_DEP_RULE,$(d)))) diff: find home -type f -print0 \ | $(SED) -z 's/^home\///g' \ + | sort -zr \ | xargs -0 -I% sh -c 'echo %; $(DIFF) --color=auto ~/% home/%' pull: @@ -166,6 +167,10 @@ pull: | xargs -0 -I% sh -c '$(DIFF) -q ~/% home/% > /dev/null || cp ~/% home/%' push: + # TODO Backup files before replacing. + # But - recursive copy is not a good strategy for this. + # Need to do a file by file pass, like the diff recipe. + # # Limit depth because directories are copied recursively: find home -maxdepth 1 -print0 \ | $(GREP) -zv '^home$$' \