[Python-modules-commits] r18217 - in packages/python-simpy/trunk/debian (rules)
dandrimont-guest at users.alioth.debian.org
dandrimont-guest at users.alioth.debian.org
Sat Aug 20 15:08:08 UTC 2011
Date: Saturday, August 20, 2011 @ 15:08:07
Author: dandrimont-guest
Revision: 18217
Replace brittle rules with cleaner ones (Debian Policy 4.6)
Modified:
packages/python-simpy/trunk/debian/rules
Modified: packages/python-simpy/trunk/debian/rules
===================================================================
--- packages/python-simpy/trunk/debian/rules 2011-08-20 13:34:28 UTC (rev 18216)
+++ packages/python-simpy/trunk/debian/rules 2011-08-20 15:08:07 UTC (rev 18217)
@@ -21,13 +21,8 @@
dh_compress -X.py -X.txt
override_dh_auto_install:
- for i in `find build/ -name '*\.py'`; do \
- head -1 $$i | grep -q '^#!.*python'; \
- if [ "$$?" -eq 0 ]; then \
- grep -v '^#\!' $$i > $$i-tmp; \
- mv $$i-tmp $$i; \
- fi; \
- done
+ # Replace broken shebangs with /usr/bin/python
+ find build/ -name '*.py' -exec sed -i -e '1s|^#!.*python.*|#!/usr/bin/python|' '{}' ';'
dh_auto_install
@@ -40,4 +35,4 @@
svn export https://simpy.svn.sourceforge.net/svnroot/simpy/SimPy/SphinxStuff/tags/$(VERSION)release/ get-orig-docs-tarball/SphinxStuff
cd get-orig-docs-tarball/SphinxStuff/Tutorials && \
svn export https://simpy.svn.sourceforge.net/svnroot/simpy/SimPy/SphinxInputs/Tutorials/bankprograms/bankprograms_OO/
- cd get-orig-docs-tarball/SphinxStuff; tar czvf ../python-simpy_$(VERSION).orig-docs.tar.gz .
+ cd get-orig-docs-tarball/SphinxStuff && tar czvf ../python-simpy_$(VERSION).orig-docs.tar.gz .
More information about the Python-modules-commits
mailing list