diff options
author | John Ankarstrom <john@ankarstrom.se> | 2021-07-08 22:55:18 +0200 |
---|---|---|
committer | John Ankarstrom <john@ankarstrom.se> | 2021-07-08 22:55:44 +0200 |
commit | 23cd2fcac97ec1c288fa3dd6fb1e1ddadf378b28 (patch) | |
tree | 94012825c86295be34fcde4d6023b9562f23f4a6 | |
parent | a90cdbfc8f32c0b16daf05fed42bb92fa4122fb7 (diff) | |
download | xutil-23cd2fcac97ec1c288fa3dd6fb1e1ddadf378b28.tar.gz |
Makefile: Remove complicated ls parsing
-rw-r--r-- | Makefile | 22 |
1 files changed, 3 insertions, 19 deletions
@@ -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) |