[Python-apps-commits] r541 - in packages/scribes/trunk/debian (rules)
piotr at users.alioth.debian.org
piotr at users.alioth.debian.org
Thu Jan 17 19:50:55 UTC 2008
Date: Thursday, January 17, 2008 @ 19:50:54
Author: piotr
Revision: 541
hardcode python2.5 in shebang only if default python version is < 2.5
Modified:
packages/scribes/trunk/debian/rules
Modified: packages/scribes/trunk/debian/rules
===================================================================
--- packages/scribes/trunk/debian/rules 2008-01-17 18:29:26 UTC (rev 540)
+++ packages/scribes/trunk/debian/rules 2008-01-17 19:50:54 UTC (rev 541)
@@ -53,7 +53,9 @@
$(MAKE) DESTDIR=$(CURDIR)/debian/scribes install
# Since python2.4 is the default ATM, we need to hardcode the hashbang
- sed -i -e 's/env python/$(shell pyversions -r)/g' $(CURDIR)/debian/scribes/usr/bin/scribes
+ifeq (old,$(shell dpkg --compare-versions "`pyversions -vd`" lt '2.5' && echo old))
+ sed -i -e '1s/env python/python2.5/g' $(CURDIR)/debian/scribes/usr/bin/scribes
+endif
# Build architecture-independent files here.
binary-indep: build install
More information about the Python-apps-commits
mailing list