[gtk-doc] tools: append to the perl path so that it stays overrideable. Fixes #604892



commit 1f5d323d9ecf6384980c8e51e9d5b30376ce3536
Author: Stefan Kost <ensonic users sf net>
Date:   Fri Dec 18 21:47:23 2009 +0200

    tools: append to the perl path so that it stays overrideable. Fixes #604892
    
    We were prepending datadir to the INC path for perl to find gtkdoc-common.pl.
    This also caused the unit tests to run with the installed version, despite
    that we had set an local path to INC from the Makefile.

 gtkdoc-fixxref.in  |    2 +-
 gtkdoc-mkdb.in     |    2 +-
 gtkdoc-mktmpl.in   |    2 +-
 gtkdoc-scan.in     |    2 +-
 gtkdoc-scangobj.in |    2 +-
 gtkdoc-scanobj.in  |    2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtkdoc-fixxref.in b/gtkdoc-fixxref.in
index 711392b..db56804 100755
--- a/gtkdoc-fixxref.in
+++ b/gtkdoc-fixxref.in
@@ -28,7 +28,7 @@ use strict;
 use bytes;
 use Getopt::Long;
 
-unshift @INC, '@PACKAGE_DATA_DIR@';
+push @INC, '@PACKAGE_DATA_DIR@';
 require "gtkdoc-common.pl";
 
 # Options
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index ee2abfe..36e2f8b 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -33,7 +33,7 @@
 use strict;
 use Getopt::Long;
 
-unshift @INC, '@PACKAGE_DATA_DIR@';
+push @INC, '@PACKAGE_DATA_DIR@';
 require "gtkdoc-common.pl";
 
 # Options
diff --git a/gtkdoc-mktmpl.in b/gtkdoc-mktmpl.in
index 13a9ba9..f449867 100755
--- a/gtkdoc-mktmpl.in
+++ b/gtkdoc-mktmpl.in
@@ -54,7 +54,7 @@
 use strict;
 use Getopt::Long;
 
-unshift @INC, '@PACKAGE_DATA_DIR@';
+push @INC, '@PACKAGE_DATA_DIR@';
 require "gtkdoc-common.pl";
 
 # Options
diff --git a/gtkdoc-scan.in b/gtkdoc-scan.in
index 0a210fd..93d1705 100755
--- a/gtkdoc-scan.in
+++ b/gtkdoc-scan.in
@@ -40,7 +40,7 @@ use strict;
 use Getopt::Long;
 use Cwd qw(realpath);
 
-unshift @INC, '@PACKAGE_DATA_DIR@';
+push @INC, '@PACKAGE_DATA_DIR@';
 require "gtkdoc-common.pl";
 
 # Options
diff --git a/gtkdoc-scangobj.in b/gtkdoc-scangobj.in
index 13bcf21..6eb906f 100644
--- a/gtkdoc-scangobj.in
+++ b/gtkdoc-scangobj.in
@@ -32,7 +32,7 @@
 
 use Getopt::Long;
 
-unshift @INC, '@PACKAGE_DATA_DIR@';
+push @INC, '@PACKAGE_DATA_DIR@';
 require "gtkdoc-common.pl";
 
 # Options
diff --git a/gtkdoc-scanobj.in b/gtkdoc-scanobj.in
index 56af240..f635aa6 100755
--- a/gtkdoc-scanobj.in
+++ b/gtkdoc-scanobj.in
@@ -32,7 +32,7 @@
 
 use Getopt::Long;
 
-unshift @INC, '@PACKAGE_DATA_DIR@';
+push @INC, '@PACKAGE_DATA_DIR@';
 require "gtkdoc-common.pl";
 
 # Options



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