diff options
author | hubertf <hubertf@pkgsrc.org> | 2000-02-09 03:51:12 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 2000-02-09 03:51:12 +0000 |
commit | 05f8037daf07e9a99086eebfa3138836e2527bed (patch) | |
tree | 1e109076b09adb3df0ae570213607b819f780ad6 /Makefile | |
parent | 3ee61f4d27cae09b03f5599e056fd99841f4bd76 (diff) | |
download | pkgsrc-05f8037daf07e9a99086eebfa3138836e2527bed.tar.gz |
Add "readme-ipv6" target, that will generate a list of IPv6 ready
packages.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
1 files changed, 25 insertions, 1 deletions
@@ -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 |