Add "open" function to fork xdg-open
[khome.git] / Makefile
index a56f6e7..b72f1f9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
 MAKEFLAGS := --no-builtin-rules
+SHELL     := /bin/bash
 
 DEPS := $(wildcard deps/*)
 
@@ -69,7 +70,7 @@ pkgs_void:
        sudo xbps-install $(shell ./list pkgs-void.list)
 
 pkgs_void_update:
-       xbps-query -m | awk -F - '{sub("-" $$NF "$$", ""); print}' | sort -u > pkgs-void.list
+       xbps-query -m | awk -F - '{sub("-" $$NF "$$", ""); print}' | sort -u | grep -vf <(./list -v sep='\n' -v end='\n' pkgs-void-src.list) > pkgs-void.list
        (echo '#'; ./patch-comments pkgs-void.list.comments pkgs-void.list) | sponge pkgs-void.list
 
 #
@@ -157,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:
@@ -165,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$$' \
This page took 0.028181 seconds and 4 git commands to generate.