[Python-modules-commits] r4631 - in packages/pyclamd/trunk/debian (rules)
piotr at users.alioth.debian.org
piotr at users.alioth.debian.org
Sun Feb 24 22:53:51 UTC 2008
Date: Sunday, February 24, 2008 @ 22:53:50
Author: piotr
Revision: 4631
try to detect licence change
Modified:
packages/pyclamd/trunk/debian/rules
Modified: packages/pyclamd/trunk/debian/rules
===================================================================
--- packages/pyclamd/trunk/debian/rules 2008-02-24 22:11:30 UTC (rev 4630)
+++ packages/pyclamd/trunk/debian/rules 2008-02-24 22:53:50 UTC (rev 4631)
@@ -20,7 +20,7 @@
rm -f pyclamd.pyc
rm -rf $(BTMPDIR)
-get-orig-source::
+get-orig-source:
rm -rf $(BTMPDIR); mkdir -p $(STMPDIR)
wget --quiet -O $(STMPDIR)/pyclamd.py http://xael.org/norman/python/pyclamd/pyclamd.py
sed -i "s/#!\/usr\/bin\/env python//g" $(STMPDIR)/pyclamd.py
@@ -28,7 +28,15 @@
wget --quiet -O $(STMPDIR)/TMPCHANGELOG http://xael.org/norman/python/pyclamd/CHANGELOG
grep -A99999 "CHANGELOG" $(STMPDIR)/TMPCHANGELOG > $(STMPDIR)/CHANGELOG
rm $(STMPDIR)/TMPCHANGELOG
- cp /usr/share/common-licenses/GPL $(STMPDIR)/COPYING
+ wget --quiet -O $(STMPDIR)/TMPLICENCE http://xael.org/norman/python/pyclamd/
+ if grep -qs '>GNU General Public License<' $(STMPDIR)/TMPLICENCE ; then \
+ cp /usr/share/common-licenses/GPL $(STMPDIR)/COPYING; \
+ rm $(STMPDIR)/TMPLICENCE;\
+ else \
+ @echo "Licence or webpage change detected, aborting...";\
+ rm -rf $(BTMPDIR);\
+ exit 1;\
+ fi
cd $(BTMPDIR); tar -czvf $(CURDIR)/../pyclamd_$(VERSION).orig.tar.gz pyclamd-$(VERSION)
rm -r $(BTMPDIR)
# Tarball generated successfully.
More information about the Python-modules-commits
mailing list