summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspz <spz@pkgsrc.org>2010-07-15 05:25:30 +0000
committerspz <spz@pkgsrc.org>2010-07-15 05:25:30 +0000
commitdb60308cef4e5d3f8b8329a66e03785e1a526906 (patch)
treecb99057f202b59dbac88de2fcd445735bd55690b
parent9cc1acc237d09b2406fd70244d9345ce33be6c66 (diff)
downloadpkgsrc-db60308cef4e5d3f8b8329a66e03785e1a526906.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
-rwxr-xr-xmk/scripts/mkreadme16
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}" \