[gobject-introspection] Bug 578200 - Substitute $(PYTHON) in g-ir-scanner.in



commit 4ba8fa2f8a63bf658406f60e4d3a1f9cc5586ea4
Author: Colin Walters <walters verbum org>
Date:   Mon Aug 24 14:38:27 2009 -0400

    Bug 578200 - Substitute $(PYTHON) in g-ir-scanner.in
    
    This lets us pick up non-default /usr/bin/python2.6 correctly.

 tools/Makefile.am     |    2 +-
 tools/g-ir-scanner.in |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 31ed145..b8e0393 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -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	
diff --git a/tools/g-ir-scanner.in b/tools/g-ir-scanner.in
index b7197c9..4c4d927 100755
--- a/tools/g-ir-scanner.in
+++ b/tools/g-ir-scanner.in
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#! PYTHON@
 # -*- Mode: Python -*-
 # GObject-Introspection - a framework for introspecting GObject libraries
 # Copyright (C) 2008  Johan Dahlin



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]