X-Git-Url: https://git.distorted.org.uk/~mdw/mirror-admin/blobdiff_plain/1742c83e98180035e7f82a1720f3eb58100dcebc..refs/heads/distorted:/etc/mirrors.d/50-rfc?ds=sidebyside diff --git a/etc/mirrors.d/50-rfc b/etc/mirrors.d/50-rfc index e44e1d4..29dcca4 100755 --- a/etc/mirrors.d/50-rfc +++ b/etc/mirrors.d/50-rfc @@ -7,13 +7,23 @@ cd $MIRRORS ## Fetch the RFC collection. standard_rsync "$@" \ - --exclude /ien/scanned/ \ - --exclude /tar/ \ - --exclude /internet-drafts/ \ - www.ietf.org::everything-ftp/rfc/ \ + --exclude=/tar/ \ + ftp.rfc-editor.org::rfc-ed-all/ \ rfc/ ## Fetch the Internet Draft collection. standard_rsync "$@" \ - rsync.mirrorservice.org::ftp.isi.edu/internet-drafts/ \ + ftp.rfc-editor.org::internet-drafts/ \ internet-drafts/ + +## Build a usable BibTeX database of RFCs. XSLT runes are by Roland +## Bless, taken from http://www.tm.uka.de/~bless/bibrfcindex.html +mkdir -p rfc-bib +if [ rfc/rfc-index.xml -nt rfc-bib/rfc.bib ]; then + xsltproc $HOME/lib/rfcxmlindex2bibtex.xslt rfc/rfc-index.xml | + sed ' + s/\([_&%#$]\)/\\\1/g + /author=/s/\([^ ]*\) \(3rd\|Jr\.\)/\{\1 \2\}/g + ' >rfc-bib/rfc-bib.new + mv rfc-bib/rfc-bib.new rfc-bib/rfc.bib +fi