File: uploaders.mk

package info (click to toggle)
ruby-pkg-tools 0.11.4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 108 kB
  • ctags: 49
  • sloc: ruby: 246; perl: 15; sh: 5; makefile: 3
file content (20 lines) | stat: -rw-r--r-- 809 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# =========================================================================
# 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::	
	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