diff options
author | spz <spz> | 2010-07-15 05:25:30 +0000 |
---|---|---|
committer | spz <spz> | 2010-07-15 05:25:30 +0000 |
commit | ee665447cc057df63593355c0455893e24f624af (patch) | |
tree | cb99057f202b59dbac88de2fcd445735bd55690b /mk | |
parent | 8d1630c095c79578f35e2ec23f6409830bb28086 (diff) | |
download | pkgsrc-ee665447cc057df63593355c0455893e24f624af.tar.gz |
we nowadays have too many packages to have the grep for IPv6 in Makefiles
and options.mk to succeed, so grep by category instead
Diffstat (limited to 'mk')
-rwxr-xr-x | mk/scripts/mkreadme | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/mk/scripts/mkreadme b/mk/scripts/mkreadme index 1728ee6881f..f084c44d986 100755 --- a/mk/scripts/mkreadme +++ b/mk/scripts/mkreadme @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: mkreadme,v 1.23 2008/04/18 14:26:37 joerg Exp $ +# $NetBSD: mkreadme,v 1.24 2010/07/15 05:25:30 spz Exp $ # # Script for README.html generation # @@ -463,7 +463,19 @@ echo " " cd ${PKGSRCDIR} ipv6=${TMPDIR}/ipv6pkgs ipv6_entries=${TMPDIR}/ipv6_entries -${GREP} -l -e '^BUILD_DEFS.*=.*IPV6_READY' -e '^PKG_SUPPORTED_OPTIONS.*=.*inet6' -e '^USE_FEATURES.*=.*inet6' */*/Makefile */*/options.mk | ${SED} -e 's;Makefile;;g' -e 's;options.mk;;g' > $ipv6 + +echo -n "" > $ipv6 +cats=`${BMAKE} show-subdir-var VARNAME=SUBDIR` +for c in ${cats} ; do + if [ -d ${c} ]; then + ${GREP} -l -e '^BUILD_DEFS.*=.*IPV6_READY' -e '^PKG_SUPPORTED_OPTIONS.*=.*inet6' -e '^USE_FEATURES.*=.*inet6' ${c}/*/Makefile | ${SED} -e 's;Makefile;;g' >> $ipv6 + arethereoptions=`ls ${c}/*/options.mk 2>/dev/null` + if [ ! -z "$arethereoptions" ]; then + ${GREP} -l -e '^BUILD_DEFS.*=.*IPV6_READY' -e '^PKG_SUPPORTED_OPTIONS.*=.*inet6' -e '^USE_FEATURES.*=.*inet6' ${c}/*/options.mk | ${SED} -e 's;options.mk;;g' >> $ipv6 + fi + + fi +done ${FGREP} -f $ipv6 README-all.html | sort -t/ +1 > $ipv6_entries ${SED} \ -e "/%%TRS%%/r${ipv6_entries}" \ |