e3f5102cf0
is almost a rewrite of the program). Note that this is still a development version but includes new features that may be required by packages using scrollkeeper (which won't work with the old 0.2). Provide a framework to automatically rebuild scrollkeeper's database from packages installing OMF files under share/omf/; they only need to include omf.mk in their Makefile and take care to install OMF files in the said directory. Reviewed by rh and wiz.
19 lines
583 B
Text
19 lines
583 B
Text
# $NetBSD: INSTALL,v 1.1 2003/02/18 14:39:02 jmmv Exp $
|
|
|
|
SCROLLKEEPER_REBUILDDB="@SCROLLKEEPER_REBUILDDB@"
|
|
SCROLLKEEPER_DATADIR="@SCROLLKEEPER_DATADIR@"
|
|
|
|
case ${STAGE} in
|
|
POST-INSTALL)
|
|
${ECHO} "===> Building scrollkeeper's database"
|
|
${MKDIR} ${SCROLLKEEPER_DATADIR}
|
|
${MKDIR} ${SCROLLKEEPER_DATADIR}/log
|
|
${TOUCH} ${SCROLLKEEPER_DATADIR}/log/scrollkeeper.log
|
|
${MKDIR} ${SCROLLKEEPER_DATADIR}/db
|
|
${SCROLLKEEPER_REBUILDDB} -q -p ${SCROLLKEEPER_DATADIR}/db > /dev/null 2>&1
|
|
;;
|
|
DEINSTALL)
|
|
${ECHO} "===> Removing scrollkeeper's database"
|
|
${RM} -rf ${SCROLLKEEPER_DATADIR}
|
|
;;
|
|
esac
|