chiark / gitweb /
bugzilla-show: use HTTPS; drop warthogs and ubuntu
[bin.git] / get-rfc
diff --git a/get-rfc b/get-rfc
index ca7c2aa335d1bfc978ab76e59a6393511cd56b9a..03aaa738bbd93fd1842d3de06d55f860d73ae7c2 100755 (executable)
--- a/get-rfc
+++ b/get-rfc
@@ -1,2 +1,6 @@
 #! /bin/sh
-wget --passive http://www.ietf.org/rfc/rfc$1.txt
+# Depends: wget
+mkdir -p "$HOME/misc/rfc"
+cd "$HOME/misc/rfc"
+[ -f "rfc$1.txt" ] || wget "https://www.ietf.org/rfc/rfc$1.txt"
+${PAGER:-pager} "rfc$1.txt"