summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2000-02-09 03:51:12 +0000
committerhubertf <hubertf@pkgsrc.org>2000-02-09 03:51:12 +0000
commit05f8037daf07e9a99086eebfa3138836e2527bed (patch)
tree1e109076b09adb3df0ae570213607b819f780ad6 /Makefile
parent3ee61f4d27cae09b03f5599e056fd99841f4bd76 (diff)
downloadpkgsrc-05f8037daf07e9a99086eebfa3138836e2527bed.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