Bug 578200 - Substitute $(PYTHON) in g-ir-scanner.in
authorColin Walters <walters@verbum.org>
Mon, 24 Aug 2009 18:38:27 +0000 (14:38 -0400)
committerColin Walters <walters@verbum.org>
Mon, 24 Aug 2009 18:38:27 +0000 (14:38 -0400)
This lets us pick up non-default /usr/bin/python2.6 correctly.

tools/Makefile.am
tools/g-ir-scanner.in

index 31ed145..b8e0393 100644 (file)
@@ -9,7 +9,7 @@ bin_SCRIPTS = g-ir-scanner
 EXTRA_DIST = g-ir-scanner.in
 
 g-ir-scanner: g-ir-scanner.in Makefile
-       sed -e s,@libdir\@,$(libdir), $< > $@.tmp && mv $@.tmp $@
+       sed -e s,@libdir\@,$(libdir), -e s,@PYTHON\@,$(PYTHON), $< > $@.tmp && mv $@.tmp $@
        chmod a+x $@
 
 g_ir_compiler_SOURCES = compiler.c     
index b7197c9..4c4d927 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!@PYTHON@
 # -*- Mode: Python -*-
 # GObject-Introspection - a framework for introspecting GObject libraries
 # Copyright (C) 2008  Johan Dahlin