summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorhubertf <hubertf>2000-02-09 03:51:12 +0000
committerhubertf <hubertf>2000-02-09 03:51:12 +0000
commitb70075316fa42a7449c807af07bc5afab62f6637 (patch)
tree1e109076b09adb3df0ae570213607b819f780ad6 /Makefile
parent052236178683499d2900935ca1ca303ab36142e2 (diff)
downloadpkgsrc-b70075316fa42a7449c807af07bc5afab62f6637.tar.gz
Add "readme-ipv6" target, that will generate a list of IPv6 ready
packages.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 25 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f7ec0a4c88a..696814a54e7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2000/01/04 23:46:14 hubertf Exp $
+# $NetBSD: Makefile,v 1.30 2000/02/09 03:51:12 hubertf Exp $
# FreeBSD Id: Makefile,v 1.35 1997/08/19 07:10:01 fenner Exp
#
@@ -122,3 +122,27 @@ README-all.html:
@rm -f $@.npkgs
@rm -f $@.new
@rm -f $@.newsorted
+
+
+
+readme-ipv6:
+ @if [ -f README-IPv6.html ]; then \
+ mv README-IPv6.html README-IPv6.html.BAK ; \
+ fi
+ @${MAKE} README-IPv6.html
+ @if cmp -s README-IPv6.html README-IPv6.html.BAK ; then \
+ mv README-IPv6.html.BAK README-IPv6.html ; \
+ else \
+ rm -f README-IPv6.html.BAK ; \
+ fi
+
+README-IPv6.html:
+ @grep -l USE_INET6 */*/Makefile | sed s,.Makefile,, >$@.pkgs
+ @fgrep -f $@.pkgs README-all.html | sort -t/ +1 >$@.trs
+ @cat templates/README.ipv6 \
+ | ${SED} \
+ -e '/%%TRS%%/r$@.trs' \
+ -e '/%%TRS%%/d' \
+ >$@
+ @${RM} $@.trs
+ @${RM} $@.pkgs