|
|
|
@ -1,4 +1,5 @@
@@ -1,4 +1,5 @@
|
|
|
|
|
path = ~/.shellrc/bin/scripts
|
|
|
|
|
find := $(shell { command -v gfind || command -v find; } 2>&-)
|
|
|
|
|
|
|
|
|
|
all: install |
|
|
|
|
|
|
|
|
@ -9,10 +10,10 @@ rmdir:
@@ -9,10 +10,10 @@ rmdir:
|
|
|
|
|
rmdir $(path) 2>&-; :
|
|
|
|
|
|
|
|
|
|
install: mkdir |
|
|
|
|
gfind . -maxdepth 1 -type f -executable -exec basename {} \; | while read -r line; do ln -s $$(realpath $$line) $(path)/$$line 2>&-; done; true
|
|
|
|
|
$(find) . -maxdepth 1 -type f -executable -exec basename {} \; | while read -r line; do ln -s $$(realpath -- $$line) $(path)/$$line 2>&-; done; true
|
|
|
|
|
|
|
|
|
|
rmlinks: |
|
|
|
|
gfind . -maxdepth 1 -type f -executable -exec basename {} \; | xargs -IF rm -fv $(path)/F
|
|
|
|
|
$(find) . -maxdepth 1 -type f -executable -exec basename {} \; | xargs -IF rm -fv $(path)/F
|
|
|
|
|
|
|
|
|
|
uninstall: rmlinks rmdir |
|
|
|
|
|
|
|
|
|