r9358 - /tools/gnome-pkg-tools/1/rules/uploaders.mk

lool at users.alioth.debian.org lool at users.alioth.debian.org
Mon Mar 26 15:10:38 CET 2007


Author: lool
Date: Mon Mar 26 14:10:38 2007
New Revision: 9358

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=9358
Log:
* Define and use shell commands.

Modified:
    tools/gnome-pkg-tools/1/rules/uploaders.mk

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=9358&op=diff
==============================================================================
--- tools/gnome-pkg-tools/1/rules/uploaders.mk (original)
+++ tools/gnome-pkg-tools/1/rules/uploaders.mk Mon Mar 26 14:10:38 2007
@@ -7,20 +7,18 @@
 
 # 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:
+# Shell command to get the maintainer from the control file
+GET_MAINTAINER_CMD := sed -n 's/^Maintainer: //p' debian/control.in
+# Number of uploads to be considered recent for the list of recent uploaders
 RECENT_UPLOADS ?= 10
-
-# Get maintainer from the control file:
-maintainer := $(shell sed -n 's/^Maintainer: //p' debian/control.in)
-# 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 -n 's/  .*//; s/^ -- //p' debian/changelog | head -n $(RECENT_UPLOADS) | sort -u | 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' )
+# Shell command to get list of all recent uploaders
+GET_RECENT_UPLOADERS_CMD := sed -n 's/  .*//; s/^ -- //p' debian/changelog | head -n $(RECENT_UPLOADS) | sort -u
+# Create uploaders as intersection of GNOME uploaders and recent uploaders, but
+# without the Maintainer
+UPLOADERS := $(shell (sed 's/,//' $(TEAM_LIST); $(GET_RECENT_UPLOADERS_CMD)) | grep -vF "`$(GET_MAINTAINER_CMD)`" | sort | uniq -d | xargs | sed -e 's/> />, /g')
 
 ifeq ($(DISABLE_UPDATE_UPLOADERS),)
 clean::
-	sed "s/@GNOME_TEAM@/$(uploaders)/" \
+	sed "s/@GNOME_TEAM@/$(UPLOADERS)/" \
 		debian/control.in > debian/control
 endif




More information about the pkg-gnome-commits mailing list