4 GMANE_DROPBOX
=~
/dl
/gmane-git
6 TOOLPATH
=~
/dev
/trackgit
10 cur_inbox
=$
(ls |
sort -n |
tail -1)
12 grep '^Archived-At' "$1" |
tail -1 |
sed 's#.*/\([0-9]\{1,\}\)>$#\1#'
14 begin
=$
(cur_gmane_id
$cur_inbox)
15 boundary
=$
(($begin+1000))
16 wget
-O gmane-
$boundary.tmp http
://download.gmane.org
/gmane.comp.version-control.git
/$begin/$boundary
17 end
=$
(cur_gmane_id gmane-
$boundary.tmp
)
18 if [ -z "$end" ]; then
19 rm gmane-
$boundary.tmp
21 mv gmane-
$boundary.tmp
$end
24 # rest _must_ run in git clone
29 "$TOOLPATH"/blobtracker.py origin
/master origin
/next origin
/pu
32 if [ -n "$end" ]; then
33 "$TOOLPATH"/mail.py
"$GMANE_DROPBOX"/$end
40 git diff-tree
--quiet --exit-code $1^
! &&
41 git update-ref refs
/heads
/$1 $1^
43 unwind_noop notes
/full
44 unwind_noop notes
/terse
47 git push trast notes
/terse notes
/full