aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarstrom <john@ankarstrom.se>2021-07-08 22:55:18 +0200
committerJohn Ankarstrom <john@ankarstrom.se>2021-07-08 22:55:44 +0200
commit23cd2fcac97ec1c288fa3dd6fb1e1ddadf378b28 (patch)
tree94012825c86295be34fcde4d6023b9562f23f4a6
parenta90cdbfc8f32c0b16daf05fed42bb92fa4122fb7 (diff)
downloadxutil-23cd2fcac97ec1c288fa3dd6fb1e1ddadf378b28.tar.gz
Makefile: Remove complicated ls parsing
-rw-r--r--Makefile22
1 files 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)