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 26 27 28
|
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
clean::
# code based on gnome-pkg-tools to auto create Uploaders field from
# metainfo available on the Debian Brasil's Team SVN repo
TEAM_LIST=../../metainfo/debian-br.team; \
if test -f $${TEAM_LIST}; then \
MAINTAINER=$$(sed -n 's/^Maintainer: //p' debian/control.in); \
grep -vF "$${MAINTAINER}" $${TEAM_LIST} | tr '\n' ' ' > debian/uploaders.tmp; \
cat debian/uploaders.tmp; \
if diff -q debian/uploaders debian/uploaders.tmp; then \
rm debian/uploaders.tmp; \
else \
mv debian/uploaders.tmp debian/uploaders; \
fi; \
fi
UPLOADERS=$$(cat debian/uploaders); \
sed "s/@DEBIAN_BR_TEAM@/$${UPLOADERS}/g" < debian/control.in > debian/control.tmp; \
if diff -q debian/control debian/control.tmp; then \
rm debian/control.tmp; \
else \
mv debian/control.tmp debian/control; \
fi
# end of Uploaders generating code
|