blob: 0e196c063412b1f70915f85172f770bd2bf67518 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001We can't use #!/full/path/to/python -u as this can be longer than shebang
2allows for. In order to be appropraite for upstream more work would be
3needed to make sure that the main xml2po code doesn't rely on python
4being invoked with -u (force stdin/out/err to be used raw).
5
6Upstream-Status: Inappropriate [Would break behavior on Windows]
7Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
8
9Index: 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
21Index: 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>.