From our favorite Perl script writer: a new makewhatis, about
15 times faster than the existing sh script. Submitted by: Wolfram Schneider <wosch@cs.tu-berlin.de>
This commit is contained in:
parent
07402e2728
commit
f1933d1eef
@ -1,20 +1,7 @@
|
||||
# @(#)Makefile 5.6 (Berkeley) 6/23/90
|
||||
|
||||
FILES= makewhatis
|
||||
NOMAN= noman
|
||||
|
||||
CLEANFILES+= ${FILES}
|
||||
|
||||
all: ${FILES}
|
||||
|
||||
makewhatis: makewhatis.sh
|
||||
sed -e 's/%sections%/ "1", "n", "l", "6", "8", "2", "3", "4", "5", "7", "p", "o", NULL/' \
|
||||
-e 's,%compext%,${compext},' \
|
||||
-e 's,%zcat%,${zcat},' \
|
||||
${.CURDIR}/${.TARGET}.sh > ${.TARGET}
|
||||
|
||||
install:
|
||||
install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
||||
${FILES} ${DESTDIR}${BINDIR}
|
||||
beforeinstall:
|
||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
||||
${.CURDIR}/makewhatis.perl ${DESTDIR}${BINDIR}/makewhatis
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
BIN
gnu/usr.bin/man/makewhatis/makewhatis.perl
Normal file
BIN
gnu/usr.bin/man/makewhatis/makewhatis.perl
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user