diff options
Diffstat (limited to 'jhbuild_repository_configure')
-rwxr-xr-x | jhbuild_repository_configure | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/jhbuild_repository_configure b/jhbuild_repository_configure new file mode 100755 index 0000000..f1656fa --- /dev/null +++ b/jhbuild_repository_configure @@ -0,0 +1,69 @@ +#!/bin/sh + +for i in `jhbuild -f jhbuildrc list` ; do + + checkoutdir=`jhbuild -f jhbuildrc run --in-checkoutdir=$i -- pwd` + + # unfortunately, jhbuild run also echos the command it ran, so we need to remove that + checkoutdir=`echo $checkoutdir | tr '\n' ' ' ` + checkoutdir=${checkoutdir%% *} + + # metamodules don't have a checkoutdir, so check for .git/config + if [ -e "$checkoutdir/.git/config" ]; then + + cd $checkoutdir + + case $i in + xserver) + EMAIL="xorg-devel@lists.freedesktop.org" + SUBJECT="PATCH" + ;; + libxcb) + EMAIL="xcb@lists.freedesktop.org" + SUBJECT="PATCH" + ;; + xcb* | pthread-stubs | proto) + EMAIL="xcb@lists.freedesktop.org" + SUBJECT="PATCH $i" + ;; + libGL) + EMAIL="mesa-dev@lists.freedesktop.org" + SUBJECT="PATCH" + ;; + mesa-demos) + EMAIL="mesa-dev@lists.freedesktop.org" + SUBJECT="PATCH mesa-demos" + ;; + fontconfig) + EMAIL="fontconfig@lists.freedesktop.org" + SUBJECT="PATCH" + ;; + xkeyboard-config) + EMAIL="" # requests patch submission via bugzilla + SUBJECT="PATCH" + ;; + pixman) + EMAIL="pixman@lists.freedesktop.org" + SUBJECT="PATCH" + ;; + *) + EMAIL="xorg-devel@lists.freedesktop.org" + SUBJECT="PATCH `git config remote.origin.url | sed s#git://anongit.freedesktop.org/git/xorg/##`" + ;; + esac + + echo "$i: email to $EMAIL with subject $SUBJECT" + + if [ -n "$EMAIL" ]; then + git config --replace-all sendemail.to $EMAIL + fi + + git config --replace-all format.subjectprefix "$SUBJECT" + + git remote set-url --push origin `git config remote.origin.url | sed s#git://anongit#ssh://git#` + + cd - >/dev/null + + fi + +done |