chiark
/
gitweb
/
~cjwatson
/
bin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
burn-dvd: add -dvd-compat for better format compatibility
[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
#! /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"