Improve the glimpse target: don't index .svn and compile directories.

Suggested by:	brooks
This commit is contained in:
philip 2008-08-15 14:11:30 +00:00
parent bd507c7cef
commit fd1b5d255d

View File

@ -46,6 +46,10 @@ TAGS ${.CURDIR}/TAGS: ${.CURDIR}/cscope.files
# You need the textproc/glimpse ports for this.
glimpse:
.if !exists(${.CURDIR}/.glimpse_exclude)
echo .svn > ${.CURDIR}/.glimpse_exclude
echo /compile/ >> ${.CURDIR}/.glimpse_exclude
.endif
cd ${.CURDIR}; glimpseindex -H . -B -f -o .
glimpse-clean: