From 7e5f08a183322d0d4f1f481e2d79bc188c7e133e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 29 Jun 2021 17:44:14 +0200 Subject: Makefile: Support links --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2a0d94f..a783668 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,3 @@ install: install -m 644 *.1 /usr/local/man/man1/ - install `ls -l | awk '$$1 ~ /^-/ && $$1 ~ /x$$/ {print $$NF}'` /usr/local/bin + install `ls -l | perl -ne 'next if not /^[-l]\S*x\s/; s/ -> .*//; s/.* //; print'` /usr/local/bin -- cgit v1.2.3