From 23cd2fcac97ec1c288fa3dd6fb1e1ddadf378b28 Mon Sep 17 00:00:00 2001 From: John Ankarstrom Date: Thu, 8 Jul 2021 22:55:18 +0200 Subject: Makefile: Remove complicated ls parsing --- Makefile | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/Makefile b/Makefile index 3c3e014..9b1b071 100644 --- a/Makefile +++ b/Makefile @@ -1,23 +1,7 @@ -EXEC != ls -l | perl -ne ' \ - if (/^-\S*x\s/) { \ - s/.* //; \ - print; \ - $$x{$$_} = 1; \ - } elsif (/^l\S*x\s/) { \ - s/ -> (.*)//; \ - $$d = $$1; \ - s/.* //; \ - push @ln, [$$_ => "$$d\n"] \ - } \ - END { \ - for (@ln) { \ - print $$_->[0] if $$x{$$_->[1]}; \ - } \ - } \ -' -IEXEC != echo $(EXEC) | sed -E 's,^| ,&/usr/local/bin/,g' +EXEC != find -H . -follow -type f -maxdepth 1 -perm -111 +IEXEC != echo " $(EXEC)" | sed -E 's, \./, /usr/local/bin/,g' install: - install -m 644 *.1 /usr/local/man/man1/ + install -m 644 *.[1-9] /usr/local/man/man1 install $(EXEC) /usr/local/bin re! $(IEXEC) -- cgit v1.2.3