Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[WIP] Fix Python shebang lines.

This avoids using a hard-coded value for the shebang, as
previously discussed in bug #650763.

https://bugzilla.gnome.org/show_bug.cgi?id=658237
  • Loading branch information...
commit 80ad7661905896186ea0f812a894c9a0efc6938b 1 parent 1951268
@dieterv authored
View
2  gio/gdbus-2.0/codegen/Makefile.am
@@ -24,7 +24,7 @@ CLEANFILES += gdbus-codegen
EXTRA_DIST += gdbus-codegen.in
gdbus-codegen: gdbus-codegen.in Makefile $(codegen_PYTHON)
- $(AM_V_GEN) sed -e 's,@datadir\@,$(datadir),' -e 's,@PYTHON\@,$(PYTHON),' $< > $@.tmp && mv $@.tmp $@
+ $(AM_V_GEN) sed -e 's,@libdir\@,$(libdir),' $< > $@.tmp && mv $@.tmp $@
@chmod a+x $@
clean-local:
View
2  gio/gdbus-2.0/codegen/gdbus-codegen.in
@@ -1,4 +1,4 @@
-#!@PYTHON@
+#!/usr/bin/env python
# GDBus - GLib D-Bus Library
#
View
1  glib/Makefile.am
@@ -461,7 +461,6 @@ install-exec-hook:
mv -f "$(DESTDIR)$(bindir)/$$sf" "$(DESTDIR)$(bindir)/$$sf".tmp \
&& sed < "$(DESTDIR)$(bindir)/$$sf".tmp > "$(DESTDIR)$(bindir)/$$sf" \
-e '1,24s|^ *#@PKGINSTALL_CONFIGVARS_IN24LINES@| ${CONFIGVARS}|' \
- -e '1,1s|#! /usr/bin/env python\([0-9]\+\(\.[0-9]\+\)\?\)\?|#!${PYTHON}|' \
|| exit $$? ; \
chmod a+x $(DESTDIR)$(bindir)/$$sf ; \
rm -f "$(DESTDIR)$(bindir)/$$sf".tmp ; \
View
2  glib/gtester-report 100755 → 100644
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python
# GLib Testing Framework Utility -*- Mode: python; -*-
# Copyright (C) 2007 Imendio AB
# Authors: Tim Janik
Please sign in to comment.
Something went wrong with that request. Please try again.