summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1995-01-10 18:12:50 +0000
committerjoerg <joerg@FreeBSD.org>1995-01-10 18:12:50 +0000
commitf1933d1eef93555307c075cc76f35081e962afa0 (patch)
tree27e6639d15a4af5cd2f09c46543e3224e0bed8ea
parent07402e2728fdba34efce609c8ba56b125f7184c7 (diff)
downloadFreeBSD-src-f1933d1eef93555307c075cc76f35081e962afa0.zip
FreeBSD-src-f1933d1eef93555307c075cc76f35081e962afa0.tar.gz
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>
-rw-r--r--gnu/usr.bin/man/makewhatis/Makefile19
-rw-r--r--gnu/usr.bin/man/makewhatis/makewhatis.perlbin0 -> 3791 bytes
2 files changed, 3 insertions, 16 deletions
diff --git a/gnu/usr.bin/man/makewhatis/Makefile b/gnu/usr.bin/man/makewhatis/Makefile
index 9849995..ee448cc 100644
--- a/gnu/usr.bin/man/makewhatis/Makefile
+++ b/gnu/usr.bin/man/makewhatis/Makefile
@@ -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>
diff --git a/gnu/usr.bin/man/makewhatis/makewhatis.perl b/gnu/usr.bin/man/makewhatis/makewhatis.perl
new file mode 100644
index 0000000..4a1c158
--- /dev/null
+++ b/gnu/usr.bin/man/makewhatis/makewhatis.perl
Binary files differ
OpenPOWER on IntegriCloud