[Python-modules-commits] r4542 - in packages/python-couchdb/trunk/debian (rules)

piotr at users.alioth.debian.org piotr at users.alioth.debian.org
Thu Feb 14 23:41:35 UTC 2008


    Date: Thursday, February 14, 2008 @ 23:41:34
  Author: piotr
Revision: 4542

use sed's '-i -e' options

Modified:
  packages/python-couchdb/trunk/debian/rules

Modified: packages/python-couchdb/trunk/debian/rules
===================================================================
--- packages/python-couchdb/trunk/debian/rules	2008-02-14 23:30:08 UTC (rev 4541)
+++ packages/python-couchdb/trunk/debian/rules	2008-02-14 23:41:34 UTC (rev 4542)
@@ -26,14 +26,12 @@
 	rm --force couchpy.1
 
 cleanbuilddir::
-	sed "s/\"$(DEB_UPSTREAM_VERSION)\"/$(PYTHON_VERSION_COMMAND)/" \
-	    couchdb/__init__.py > couchdb/__init__.py~
-	mv couchdb/__init__.py~ couchdb/__init__.py
+	sed -i -e "s/\"$(DEB_UPSTREAM_VERSION)\"/$(PYTHON_VERSION_COMMAND)/" \
+	    couchdb/__init__.py
 
 post-patches::
-	sed "s/$(PYTHON_VERSION_COMMAND)/\"$(DEB_UPSTREAM_VERSION)\"/" \
-	    couchdb/__init__.py > couchdb/__init__.py~
-	mv couchdb/__init__.py~ couchdb/__init__.py
+	sed -i -e "s/$(PYTHON_VERSION_COMMAND)/\"$(DEB_UPSTREAM_VERSION)\"/" \
+	    couchdb/__init__.py
 
 common-install-indep::
 	chmod 755 couchpy




More information about the Python-modules-commits mailing list