forked from Lainports/freebsd-ports
Update the glimpse index once a week.
Submitted by: Oliver Helmling <oliver.helmling@stud.uni-bayreuth.de>
This commit is contained in:
parent
3b4aad3bfc
commit
4b0ca052d8
3 changed files with 28 additions and 0 deletions
|
|
@ -26,5 +26,7 @@ post-install:
|
|||
${INSTALL_DATA} ${WRKSRC}/tkman-help.html ${PREFIX}/share/doc/tkman
|
||||
.endif
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/contrib/tkmanclient ${PREFIX}/bin
|
||||
@${MKDIR} ${PREFIX}/etc/periodic/weekly
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/310.index_manpages ${PREFIX}/etc/periodic/weekly
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
|||
23
misc/tkman/files/310.index_manpages
Normal file
23
misc/tkman/files/310.index_manpages
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#!/bin/sh
|
||||
|
||||
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/periodic/weekly/$(basename $0)\$"); then
|
||||
echo "$0: Cannot determine the PREFIX" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
IFS=":" mandirs=`/usr/bin/manpath`
|
||||
|
||||
for dir in ${mandirs}; do
|
||||
cd ${dir}
|
||||
if [ ! -r .glimpse_filters ] ; then
|
||||
echo '*.gz /usr/bin/gzip -cdfq' > .glimpse_filters
|
||||
fi
|
||||
if [ -x ${PREFIX}/bin/glimpseindex ]; then
|
||||
echo ""
|
||||
echo "Rebuilding man page indexes:"
|
||||
${PREFIX}/bin/glimpseindex -z -o -B -f -H ${dir} man*
|
||||
chmod 644 ${dir}/.glimpse_*
|
||||
fi
|
||||
done
|
||||
|
||||
exit 0
|
||||
|
|
@ -1,5 +1,8 @@
|
|||
bin/tkman
|
||||
bin/tkmanclient
|
||||
bin/retkman
|
||||
etc/periodic/weekly/310.index_manpages
|
||||
share/doc/tkman/tkman-help.html
|
||||
@dirrm share/doc/tkman
|
||||
@dirrm etc/periodic/weekly
|
||||
@dirrm etc/periodic
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue