11#! /bin/bash
22
3- version=0.22
3+ version=0.23
44program=${0##*/ }
55progdir=${0%/* }
66if [ " $progdir " = " $program " ]; then progdir=" ." ; fi
@@ -28,6 +28,7 @@ function version() {
2828# [ $1 -gt 70 ] || die "Expected the ietf number as argument on the command line, but found '$1'"
2929
3030# if [ "$1" ]; then arg=$1; else arg=$(svn info http://svn.tools.ietf.org/svn/tools/ietfdb/trunk/ | egrep "^Last Changed Rev" | awk '{print $4}'); fi
31+
3132if [ " $1 " ]; then arg=$1 ; else arg=$( svn ls http://svn.tools.ietf.org/svn/tools/ietfdb/tags/ | grep ' ^[1-9]' | tail -n 1 | sed -r ' s/^(.*)\/$/v\1/' ) ; fi
3233
3334if [ " ${arg: 0: 1} " = " v" ]; then
@@ -51,24 +52,25 @@ function mksvndir() {
5152 fi
5253}
5354
55+ cd $progdir
56+
5457num=$( < /www/tools.ietf.org/meta/current-ietf-number.txt)
55- for n in $( seq $(( num- 5 )) $num ) ; do
58+ for n in $( seq $(( num- 3 )) $num ) ; do
5659 trac-admin /www/tools.ietf.org/tools/ietfdb wiki export IETF${n} SprintSignUp \
5760 | egrep " ^\|\|" | tail -n +2 | python -c '
5861import sys, re
59- altlogin = {
60- "ietf@augustcellars.com": "schaad",
61- }
62+ afile = open("aliases")
63+ aliases = dict([ line.strip().split(None,1) for line in afile.read().splitlines() ])
6264for line in sys.stdin:
6365 blank, name, email, rest = line.strip().split("||", 3)
6466 login, dummy = re.split("[@.]", email, 1)
65- if email in altlogin :
66- login = altlogin[email ]
67+ if login in aliases :
68+ login = aliases[login ]
6769 print "\t".join((login.strip().lower(), email.strip().lower(), name.strip())) ' \
6870 | update $progdir /sprint$n .txt
6971done
7072
71- cat $( ls $progdir /sprint* .txt | tail -n 2) | sed ' s/[ \t]*$//' | sort | uniq | while read login email name; do
73+ cat $( ls $progdir /sprint* .txt | tail -n 2) $progdir /extras.txt | sed ' s/[ \t]*$//' | sort | uniq | while read login email name; do
7274 echo " "
7375 echo " $login ($name <$email >):"
7476 mksvndir $login
@@ -85,8 +87,10 @@ cat $(ls $progdir/sprint*.txt | tail -n 2) | sed 's/[ \t]*$//' | sort | uniq | w
8587 ${rev: +This branch is based on $rev . } You can check it out by doing
8688 svn co http://svn.tools.ietf.org/svn/tools/ietfdb/personal/$login /$target
8789
88- (More instructions about setup is available at
89- http://trac.tools.ietf.org/tools/ietfdb/wiki/SprintCoderSetup)
90+ Please read the instructions about sprint coder setup at
91+ http://trac.tools.ietf.org/tools/ietfdb/wiki/SprintCoderSetup
92+ -- both the workflow description and the details of setting up your
93+ environment.
9094
9195
9296 Best regards,
0 commit comments