[Python-modules-commits] r4383 - in packages/ipython/trunk/debian (changelog rules)

bzed at users.alioth.debian.org bzed at users.alioth.debian.org
Thu Jan 17 10:21:03 UTC 2008


    Date: Thursday, January 17, 2008 @ 10:20:55
  Author: bzed
Revision: 4383

* debian/rules:
  - Creating /usr/bin/ipythonX.Y wrappers for all python versions. Thanks to
    martin f. krafft (Closes: #461188).

Modified:
  packages/ipython/trunk/debian/changelog
  packages/ipython/trunk/debian/rules

Modified: packages/ipython/trunk/debian/changelog
===================================================================
--- packages/ipython/trunk/debian/changelog	2008-01-16 16:19:42 UTC (rev 4382)
+++ packages/ipython/trunk/debian/changelog	2008-01-17 10:20:55 UTC (rev 4383)
@@ -1,3 +1,11 @@
+ipython (0.8.2.dfsg-2) unstable; urgency=low
+
+  * debian/rules:
+    - Creating /usr/bin/ipythonX.Y wrappers for all python versions. Thanks to
+      martin f. krafft (Closes: #461188).
+
+ -- Bernd Zeimetz <bzed at debian.org>  Thu, 17 Jan 2008 11:17:49 +0100
+
 ipython (0.8.2.dfsg-1) unstable; urgency=low
 
   [ Bernd Zeimetz ]

Modified: packages/ipython/trunk/debian/rules
===================================================================
--- packages/ipython/trunk/debian/rules	2008-01-16 16:19:42 UTC (rev 4382)
+++ packages/ipython/trunk/debian/rules	2008-01-17 10:20:55 UTC (rev 4383)
@@ -1,6 +1,7 @@
 #!/usr/bin/make -f
 # ipython debian/rules file
-DEB_PYTHON_SYSTEM=pysupport
+DEB_PYTHON_SYSTEM = pysupport
+PYVERS = $(shell pyversions -sv)
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/python-distutils.mk
 include /usr/share/cdbs/1/rules/dpatch.mk
@@ -11,7 +12,15 @@
 	rm $(CURDIR)/debian/ipython/usr/share/doc/ipython/ChangeLog
 	rm $(CURDIR)/debian/ipython/usr/share/doc/ipython/README_Windows.txt
 	rm $(CURDIR)/debian/ipython/usr/share/doc/ipython/pycon.ico
-	
+
+	# add wrapper scripts for all python versions
+	set -e ;\
+	for pyvers in $(PYVERS); do \
+	    sed "1s|bin/python|bin/python$$pyvers|" $(CURDIR)/debian/ipython/usr/bin/ipython > \
+	                                            $(CURDIR)/debian/ipython/usr/bin/ipython$$pyvers ;\
+	done
+	chmod 755 $(CURDIR)/debian/ipython/usr/bin/ipython*	
+
 	# change permission on scripts
 	chmod a-x $(CURDIR)/debian/ipython/usr/share/doc/ipython/examples/*
 	




More information about the Python-modules-commits mailing list