6 mkdir -p $MIRRORS/eprint-bib; cd $MIRRORS/eprint-bib
7 eprint=http://eprint.iacr.org
10 ## Fetch the master index.
11 curl -sS -o list -z '1 hour ago' $eprint/complete/
14 ## Pick out the article tags.
15 sed -n '/^<a href="\/\([0-9]\+\/[0-9]\+\)">.*$/ s::\1:p' list >tags
17 ## For each tag, make sure we have the article information.
21 file=$dir/eprint-${tag/\//-}.bib
23 curl -sS -o $file.in "$eprint/cgi-bin/cite.pl?entry=$tag"
28 s%note =.*\$%url = {http://eprint.iacr.org/$tag},%
30 }" $file.in >$file.sed
37 ## Build the main bibliography.
40 find . -name 'eprint-*.bib' -print | sort | xargs cat
42 mv eprint.bib.new eprint.bib