projects
/
OpenSPARC-T2-SAM
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
In legion build config, updated path to GNU tools and updated deprecated Sun CC flag...
[OpenSPARC-T2-SAM]
/
sam-t2
/
devtools
/
amd64
/
bin
/
ftp-rfc
#!/bin/sh
# \
exec
expect
--
"
$0
"
${1+"$@"}
# ftp-rfc <rfc-number>
# ftp-rfc -index
# retrieves an rfc (or the index) from uunet
exp_version
-exit
5.0
if
{
$argc
!=
1
} {
send_user
"usage: ftp-rfc \[#] \[-index]
\n
"
exit
}
set
file
"rfc
$argv
.Z"
set
timeout
60
spawn
ftp ftp
.uu.net
expect
"Name*:"
send
"anonymous
\r
"
expect
"Password:"
send
"expect@nist.gov
\r
"
expect
"ftp>"
send
"binary
\r
"
expect
"ftp>"
send
"cd inet/rfc
\r
"
expect
"550*ftp>"
exit
"250*ftp>"
send
"get
$file
\r
"
expect
"550*ftp>"
exit
"200*226*ftp>"
close
wait
send_user
"
\n
uncompressing file - wait...
\n
"
exec
uncompress
$file