[Midnightbsd-cvs] mports: maintainer.mk: add manvars target.
ctriv at midnightbsd.org
ctriv at midnightbsd.org
Thu Mar 26 18:19:03 EDT 2009
Log Message:
-----------
add manvars target.
Modified Files:
--------------
mports/Mk/components:
maintainer.mk (r1.1 -> r1.2)
-------------- next part --------------
Index: maintainer.mk
===================================================================
RCS file: /home/cvs/mports/Mk/components/maintainer.mk,v
retrieving revision 1.1
retrieving revision 1.2
diff -L Mk/components/maintainer.mk -L Mk/components/maintainer.mk -u -r1.1 -r1.2
--- Mk/components/maintainer.mk
+++ Mk/components/maintainer.mk
@@ -127,3 +127,14 @@
case $$toedit in "");; \
*) ${ECHO_CMD} -n 'edit patches: '; read i; \
cd ${PATCHDIR} && $${VISUAL:-$${EDIT:-/usr/bin/vi}} $$toedit;; esac
+
+
+_CHECKSECS= 1 2 3 4 5 6 7 8 9
+manvars: fake
+.for SEC in ${_CHECKSECS}
+ @cd ${FAKE_DESTDIR}; \
+ _pages=`${FIND} . -path '*man/man${SEC}/*' -type f | perl -pe 'chomp; s/(\.gz)+$$//; s:.*/::; $$_ .= " ";'`; \
+ if [ "x$$_pages" != "x" ]; then \
+ echo "MAN${SEC}= $$_pages"; \
+ fi
+.endfor
More information about the Midnightbsd-cvs
mailing list