[Python-modules-commits] r6814 - in packages/pyglet/trunk/debian (rules)

speijnik-guest at users.alioth.debian.org speijnik-guest at users.alioth.debian.org
Fri Oct 31 09:15:23 UTC 2008


    Date: Friday, October 31, 2008 @ 09:15:22
  Author: speijnik-guest
Revision: 6814

debian/rules: made PYGLET_VERSION automatically be set with some regex magic.

Modified:
  packages/pyglet/trunk/debian/rules

Modified: packages/pyglet/trunk/debian/rules
===================================================================
--- packages/pyglet/trunk/debian/rules	2008-10-30 23:36:13 UTC (rev 6813)
+++ packages/pyglet/trunk/debian/rules	2008-10-31 09:15:22 UTC (rev 6814)
@@ -8,7 +8,7 @@
 
 DEB_COMPRESS_EXCLUDE := .py
 DEB_INSTALL_CHANGELOGS_ALL := CHANGELOG
-PYGLET_VERSION=1.1.2
+PYGLET_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p' | sed -rne 's,\.dfsg.*$,,p')
 
 get-orig-sources:
 	wget http://pyglet.googlecode.com/files/pyglet-$(PYGLET_VERSION).tar.gz




More information about the Python-modules-commits mailing list