blob: 20f5c13e33239efccb53c605a2f1d18d0e9105fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
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]}; \
} \
} \
'
install:
install -m 644 *.1 /usr/local/man/man1/
install $(EXEC) /usr/local/bin
./re! `echo $(EXEC) | sed -E 's,^| ,&/usr/local/bin/,g'`
|