1
0
Fork 0

Copied the wrong index.gph from the git history >_<

This commit is contained in:
R Tyler Croy 2020-10-11 13:01:09 -07:00
parent d53b8036af
commit 607fb721ae
No known key found for this signature in database
GPG Key ID: E5C92681BEF6CEA2
1 changed files with 17 additions and 6 deletions

View File

@ -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