File: uploaders.mk

package info (click to toggle)
ruby-pkg-tools 0.14
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 108 kB
  • ctags: 51
  • sloc: ruby: 253; perl: 15; sh: 5; makefile: 1
file content (25 lines) | stat: -rw-r--r-- 975 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# =========================================================================
# Debian Ruby Packaging Tools 
# GNU Make class for auto-updating the Uploaders field
#
# $Id$
# =========================================================================

# Members list of Debian Ruby Maintainers
TEAM_LIST ?= /usr/share/ruby-pkg-tools/pkg-ruby-extras.team

# Remove maintainer from uploaders list
maintainer := $(shell sed -n 's/^Maintainer: //p' debian/control.in)
uploaders := $(shell grep -vF '$(maintainer)' $(TEAM_LIST))

clean::	
	$(warning Usage of the uploaders rule is DEPRECATED, please remove it!)
	if [ ! -f debian/control.in ] ; then \
		echo "No debian/control.in found.";\
		false;\
	fi
	sed "s/@RUBY_EXTRAS_TEAM@/$(uploaders)/" debian/control.in > debian/control
ifneq ($(shell grep '@RUBY_TEAM@' debian/control.in),)
	$(warning @RUBY_TEAM@ is deprecated, use @RUBY_EXTRAS_TEAM@ instead.)
	sed "s/@RUBY_TEAM@/$(uploaders)/" debian/control.in > debian/control
endif