summaryrefslogtreecommitdiff
path: root/tools/generate_wrap_init.pl.in
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2004-03-18 13:58:26 +0000
committerMurray Cumming <murrayc@src.gnome.org>2004-03-18 13:58:26 +0000
commit68563c440747f306346d45c13ddef0e41431beaf (patch)
tree961ea80ae19927811a0fa13f6f901323f082e036 /tools/generate_wrap_init.pl.in
parent53fc26d7a31d6c6dde407bc9d98ad36df8786e37 (diff)
downloadglibmm-68563c440747f306346d45c13ddef0e41431beaf.tar.gz
Change a regex so that files are included without full path. Apparently
2004-03-18 Murray Cumming <murrayc@murrayc.com> * tools/generate_wrap_init.pl: Change a regex so that files are included without full path. Apparently this helps when building outside of the source directory, though I'm sceptical. By Victor Zverovich in bug #137530.
Diffstat (limited to 'tools/generate_wrap_init.pl.in')
-rw-r--r--tools/generate_wrap_init.pl.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/generate_wrap_init.pl.in b/tools/generate_wrap_init.pl.in
index c3c1cd69..f3e35cd5 100644
--- a/tools/generate_wrap_init.pl.in
+++ b/tools/generate_wrap_init.pl.in
@@ -136,7 +136,7 @@ while ($ARGV[0])
# Store header filename so that we can #include it later:
my $filename_header = $filename;
- $filename_header =~ s/\.hg/\.h/;
+ $filename_header =~ s/.*\/([^\/]+)\.hg/$1.h/;
push(@filenames_headers, $filename_header);
shift @ARGV;