[Python-apps-commits] r3557 - in packages/phatch/trunk/debian (phatch-cli.links rules)

piotr at users.alioth.debian.org piotr at users.alioth.debian.org
Wed Aug 26 21:38:20 UTC 2009


    Date: Wednesday, August 26, 2009 @ 21:38:20
  Author: piotr
Revision: 3557

ship bin/phatch (and use sed to update sys.path)

Modified:
  packages/phatch/trunk/debian/phatch-cli.links
  packages/phatch/trunk/debian/rules

Modified: packages/phatch/trunk/debian/phatch-cli.links
===================================================================
--- packages/phatch/trunk/debian/phatch-cli.links	2009-08-26 20:10:41 UTC (rev 3556)
+++ packages/phatch/trunk/debian/phatch-cli.links	2009-08-26 21:38:20 UTC (rev 3557)
@@ -1,3 +1,2 @@
 /usr/share/fonts/truetype/freefont/FreeSans.ttf /usr/share/phatch/data/fonts/FreeSans.ttf
 /usr/share/fonts/truetype/thai/Purisa.ttf /usr/share/phatch/data/fonts/Purisa.ttf
-/usr/share/phatch/phatch/phatch.py /usr/bin/phatch

Modified: packages/phatch/trunk/debian/rules
===================================================================
--- packages/phatch/trunk/debian/rules	2009-08-26 20:10:41 UTC (rev 3556)
+++ packages/phatch/trunk/debian/rules	2009-08-26 21:38:20 UTC (rev 3557)
@@ -14,7 +14,7 @@
 
 binary-install/phatch-cli::
 	find $(PKG_C_DIR) -name '*.py[co]' -delete
-	chmod +x $(PKG_C_DIR)/usr/share/phatch/phatch/phatch.py
+	sed -i -e "s|import phatch|sys.path.extend(['/usr/share/phatch/', '/usr/share/phatch/phatch/']);import phatch|" $(PKG_C_DIR)/usr/bin/phatch
 
 binary-install/phatch:: binary-install/phatch-cli
 	mkdir -p $(PKG_P_DIR)/usr/share/phatch/phatch/lib




More information about the Python-apps-commits mailing list