chiark
/
gitweb
/
~cjwatson
/
bin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ubuntu-daily: mount all the ISO images we can find as jigdo sources
[bin.git]
/
get-rfc
diff --git
a/get-rfc
b/get-rfc
index ca7c2aa335d1bfc978ab76e59a6393511cd56b9a..3e41df8c1b8ae1d5b9d9a5dffd6e6642655e81d3 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 "http://www.ietf.org/rfc/rfc$1.txt"
+${PAGER:-pager} "rfc$1.txt"