Copied the wrong index.gph from the git history >_<
This commit is contained in:
parent
d53b8036af
commit
607fb721ae
|
@ -1,7 +1,18 @@
|
|||
#!/usr/bin/env ruby
|
||||
|
||||
This directory contains a manually updated archive of all the RFCs that exist
|
||||
and are available from rfc-editor.org
|
||||
|
||||
They are collected here for posterity and ease-of-use in Gopherspace
|
||||
|
||||
|
||||
# This is a valid search
|
||||
if (ARGV.size == 3) && (!ARGV[0].empty?)
|
||||
begin
|
||||
query = ARGV[0].to_i
|
||||
path = File.join(File.dirname(__FILE__), "./rfc#{query}.txt")
|
||||
if File.exists? path
|
||||
puts File.read(path)
|
||||
else
|
||||
puts "Not a valid RFC"
|
||||
end
|
||||
rescue => e
|
||||
puts "Failure in looking up RFC"
|
||||
end
|
||||
else
|
||||
puts "[7|Enter RFC number|/texts/rfcs|server|port]"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue