#296635 simple RFC viewing script available

#296635#5
Date:
2005-02-23 17:50:47 UTC
From:
To:
I've made a little script 'rfc' that should make RFC viewing easier.
Would you mind to add it to doc-rfc-std package?

#!/bin/sh
# Copyright (c) 2005 Matus UHLAR - fantomas <uhlar@fantomas.sk>
# This code is hereby licensed for public consumption under the
# GNU GPL v2 or greater
#
# Usage: rfc  [ index | number ] [ ... ]
# accepts pure numbers or keyword "index", latter one displays RFC index.
# without parameters displays just the RFC index

cd /usr/share/doc/RFC/links

if [ $# = 0 ]
then
	rfcs="/usr/doc/RFC/rfc-index.txt.gz"
else
	for rfc in "$@"
	do
		if [ "$rfc" = "index" ]
		then
			rfcs="$rfcs ../rfc-index.txt.gz"
		elif [ ! -f "rfc$rfc.txt.gz" ]
		then
			echo "RFC $rfc is not available/installed."
		else
			rfcs="$rfcs rfc$rfc.txt.gz"
		fi
	done

	if [ ! "$rfcs" ]
	then
		exit 1
	fi
fi

if [ "$PAGER" = less ]
then
	zless $rfcs
else
	zmore $rfcs
fi

#296635#10
Date:
2011-11-13 17:47:41 UTC
From:
To:
Hi,

related to this: I think all doc-rfc-* packages should also suggest the already
existing rfc readers: emacs-googies-el contains an rfc reader for emacs and
qrfcview is a standalone rfc reader.

Related to this, I'd like to suggest a new debian native package rfc-tools or
rfc-goodies that could collect all kind of small snippets around rfcs. Those
snippets should rather not be part of the doc-rfc package because updating a
small bug in one of the snippets would trigger a rebuild and archive update of
hundreds of megabytes of rfcs.

Regards,

Thomas Koch
iQIcBAEBCAAGBQJOwAK4AAoJEAf8SJEEK6Za/ioQAJl2Md5Ko0y9y1MgoJQYCwLs
+oYDih9WOHI0PccA+CTxPyNaFXQCrZB3MMTaBJyJe2IosYd1BXZtFbeHYV4/v/3p
POT/A5w3ABmZNVIuxJmuuLH/VxapnpcQB4M0VPYF9v1AczrRMU2dSIVx78DYZ5Hq
7vpRn/z2wQf+LfjVk43yb6Ea03ayTPISs06ALhI7wSbXGkE9tVK8DxkHEtMZ6Erw
1oCwGbc/iIIwl0VkDU/Y125kibKcU6qCheLifq9NEq5uYFkG+DHC7CXZuWOhiImm
v94mpXHkfkdRwD3+Cp41TfiXgaI7YOLCF3/SPKhTYo3hykFAsYYJkucgLUoumVFx
ZoWFnLVlHMakH3xi7sahMumLGYD7djpCepofUV/sO239F2QGMuplBtURtd79GJjO
6SmhzKVi8QY2h9SbfIrvUS5kc2yXsy77BRud9ZBeig6Nx6OMIxyg6lHr7EqSYChr
9JzWxfRBAMvN0t3H6fHnO3TnRsaPr2bEOOMt7oLZT34hfbao3ka9yn9vTdgU1naN
GgU2auEzShBR4P3Fbr/2nPcYmfBSGlcnnljC6nSI4GgLDrFdP6U4+jQJ++2AUDyE
aZfXvH9J5CyGJK7qGYh7krgKzm7Fk7e4mytoveTBoeimnQVJ/0kz9ukOi+siMdKM
J0gQAxG4Vi0cEfrNp0ZN
=JI5o
-----END PGP SIGNATURE-----