r9353 - in /tools/gnome-pkg-tools: 1/rules/uploaders.mk
debian/changelog
he at users.alioth.debian.org
he at users.alioth.debian.org
Mon Mar 26 14:22:40 CET 2007
Author: he
Date: Mon Mar 26 13:22:39 2007
New Revision: 9353
URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=9353
Log:
* 1/rules/uploaders.mk: Generate uploaders field by intersecting
the list of gnome maintainers with a list of people who have done
an upload recently.
Modified:
tools/gnome-pkg-tools/1/rules/uploaders.mk
tools/gnome-pkg-tools/debian/changelog
Modified: tools/gnome-pkg-tools/1/rules/uploaders.mk
URL: http://svn.debian.org/wsvn/pkg-gnome/tools/gnome-pkg-tools/1/rules/uploaders.mk?rev=9353&op=diff
==============================================================================
--- tools/gnome-pkg-tools/1/rules/uploaders.mk (original)
+++ tools/gnome-pkg-tools/1/rules/uploaders.mk Mon Mar 26 13:22:39 2007
@@ -7,10 +7,17 @@
# Members list of Debian GNOME Maintainers
TEAM_LIST ?= /usr/share/gnome-pkg-tools/pkg-gnome.team
+# Number of uploads to be considered recent for the list of recent uploaders:
+RECENT_UPLOADS ?= 10
-# Remove maintainer from uploaders list
+# Get maintainer from the control file:
maintainer := $(shell sed -n 's/^Maintainer: //p' debian/control.in)
-uploaders := $(shell grep -vF '$(maintainer)' $(TEAM_LIST))
+# Get list of all gnome uploaders, quoting characters that could be a problem later:
+gnome_uploaders := $(shell grep -vF '$(maintainer)' $(TEAM_LIST) | sed -e "s/\(['\"\(\)]\)/\\\\\\\\\1/g")
+# Get list of all recent uploaders, quoting characters that could be a problem later:
+recent_uploaders := $(shell sed -nr 's/ .*//; s/^ -- //p' debian/changelog | head -n $(RECENT_UPLOADS) | sort | uniq | grep -vF '$(maintainer)' | sed -e 's/$$/,/' | sed -e "s/\(['\"\(\)]\)/\\\\\\\\\1/g" )
+# Create uploaders as intersection of gnome_uploaders and recent_uploaders:
+uploaders := $(shell echo "$(gnome_uploaders)", "$(recent_uploaders)" | sed -e 's/,/\n/g' | sort | uniq -d | xargs | sed -e 's/> />, /g' )
clean::
sed "s/@GNOME_TEAM@/$(uploaders)/" \
Modified: tools/gnome-pkg-tools/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/tools/gnome-pkg-tools/debian/changelog?rev=9353&op=diff
==============================================================================
--- tools/gnome-pkg-tools/debian/changelog (original)
+++ tools/gnome-pkg-tools/debian/changelog Mon Mar 26 13:22:39 2007
@@ -1,3 +1,11 @@
+gnome-pkg-tools (0.10.2) unstable; urgency=low
+
+ * 1/rules/uploaders.mk: Generate uploaders field by intersecting
+ the list of gnome maintainers with a list of people who have done
+ an upload recently.
+
+ -- Marc 'HE' Brockschmidt <he at debian.org> Mon, 26 Mar 2007 15:16:43 +0200
+
gnome-pkg-tools (0.10.1) unstable; urgency=low
* Cleanups.
More information about the pkg-gnome-commits
mailing list