[pkg-freevo-commits] r112 - packages/freevo/trunk/debian
mennucc1 at alioth.debian.org
mennucc1 at alioth.debian.org
Tue Mar 25 14:40:23 UTC 2008
Author: mennucc1
Date: 2008-03-25 14:40:22 +0000 (Tue, 25 Mar 2008)
New Revision: 112
Modified:
packages/freevo/trunk/debian/rules
Log:
better code snippet to normalize python interpreter
- faster
- avoid error with a filename with spaces
Modified: packages/freevo/trunk/debian/rules
===================================================================
--- packages/freevo/trunk/debian/rules 2008-03-25 14:31:42 UTC (rev 111)
+++ packages/freevo/trunk/debian/rules 2008-03-25 14:40:22 UTC (rev 112)
@@ -17,14 +17,14 @@
: # Replace all '#!' calls to python with /usr/bin/python
: # and make them executable
- for i in `find debian/tmp -type f`; do \
+ for i in debian/tmp/usr/bin/freevo `find debian/tmp -type f -name "*py" `; do \
sed '1s,#!.*python[^ ]*\(.*\),#! /usr/bin/python\1,' \
- $$i > $$i.temp; \
- if cmp --quiet $$i $$i.temp; then \
- rm -f $$i.temp; \
+ "$$i" > "$$i.temp"; \
+ if cmp --quiet "$$i" "$$i.temp"; then \
+ rm -f "$$i.temp"; \
else \
- mv -f $$i.temp $$i; \
- chmod 755 $$i; \
+ mv -f "$$i.temp" "$$i"; \
+ chmod 755 "$$i"; \
echo "fixed interpreter: $$i"; \
fi; \
done
More information about the Pkg-freevo-commits
mailing list