blob: 3c3e014c45effca89aa5546d771b34fdc05bbb85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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'
install:
install -m 644 *.1 /usr/local/man/man1/
install $(EXEC) /usr/local/bin
re! $(IEXEC)
|