diff options
Diffstat (limited to 'textproc/rfcutil/patches/patch-aa')
-rw-r--r-- | textproc/rfcutil/patches/patch-aa | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/textproc/rfcutil/patches/patch-aa b/textproc/rfcutil/patches/patch-aa index 1719d8f9fd0..aa71eb2d1d6 100644 --- a/textproc/rfcutil/patches/patch-aa +++ b/textproc/rfcutil/patches/patch-aa @@ -1,12 +1,12 @@ -$NetBSD: patch-aa,v 1.3 2011/11/23 13:31:58 hubertf Exp $ +$NetBSD: patch-aa,v 1.4 2012/02/25 14:07:59 hans Exp $ --- rfc.orig 2011-11-23 13:08:42.000000000 +0000 +++ rfc @@ -106,6 +106,9 @@ if ($ARGV[0] eq "-i") { - #system ("$viewer -source http://www.faqs.org/rfc/rfc-index.txt > $indexpath"); - #system ("$viewer -source http://www.dewn.com/rfc/rfc-index.txt > $indexpath"); - system ("$viewer -source http://www.ietf.org/download/rfc-index.txt > $indexpath"); -+ + #system ("$viewer -dump http://www.faqs.org/rfc/rfc-index.txt > $indexpath"); + #system ("$viewer -dump http://www.dewn.com/rfc/rfc-index.txt > $indexpath"); + system ("$viewer -dump http://ftp.isi.edu/in-notes/rfc-index.txt > $indexpath"); ++ + my $filetype = `file '$indexpath'`; + system("if expr \"$filetype\" : \".*gzip.*\" 2>&1 >/dev/null ; then mv ${indexpath} ${indexpath}.gz ; gunzip ${indexpath}.gz ; fi"); $indexlength=numlines($indexpath); print "new lines \t= $indexlength\t$indexpath\n"; |