chiark / gitweb /
hacky exim queue admin helpers
[bin.git] / get-rfc
diff --git a/get-rfc b/get-rfc
old mode 100644 (file)
new mode 100755 (executable)
index ca7c2aa..3e41df8
--- 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 "http://www.ietf.org/rfc/rfc$1.txt"
+${PAGER:-pager} "rfc$1.txt"