Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | We can't use #!/full/path/to/python -u as this can be longer than shebang |
| 2 | allows for. In order to be appropraite for upstream more work would be |
| 3 | needed to make sure that the main xml2po code doesn't rely on python |
| 4 | being invoked with -u (force stdin/out/err to be used raw). |
| 5 | |
| 6 | Upstream-Status: Inappropriate [Would break behavior on Windows] |
| 7 | Signed-off-by: Constantin Musca <constantinx.musca@intel.com> |
| 8 | |
| 9 | Index: gnome-doc-utils-0.20.10/xml2po/xml2po/Makefile.am |
| 10 | =================================================================== |
| 11 | --- gnome-doc-utils-0.20.10.orig/xml2po/xml2po/Makefile.am |
| 12 | +++ gnome-doc-utils-0.20.10/xml2po/xml2po/Makefile.am |
| 13 | @@ -7,7 +7,6 @@ CLEANFILES = xml2po |
| 14 | |
| 15 | xml2po: xml2po.py.in |
| 16 | $(AM_V_GEN)sed -e "s/^VERSION =.*/VERSION = \"@VERSION@\"/" \ |
| 17 | - -e "s+^#!.*python.*+#!$(PYTHON)+" \ |
| 18 | < $(srcdir)/xml2po.py.in > xml2po |
| 19 | $(AM_V_at)chmod +x xml2po |
| 20 | |
| 21 | Index: gnome-doc-utils-0.20.10/xml2po/xml2po/xml2po.py.in |
| 22 | =================================================================== |
| 23 | --- gnome-doc-utils-0.20.10.orig/xml2po/xml2po/xml2po.py.in |
| 24 | +++ gnome-doc-utils-0.20.10/xml2po/xml2po/xml2po.py.in |
| 25 | @@ -1,4 +1,4 @@ |
| 26 | -#!/usr/bin/python -u |
| 27 | +#!/usr/bin/env python |
| 28 | # -*- encoding: utf-8 -*- |
| 29 | # Copyright (c) 2004, 2005, 2006 Danilo Ĺ egan <danilo@gnome.org>. |
| 30 | # Copyright (c) 2009 Claude Paroz <claude@2xlibre.net>. |