summaryrefslogtreecommitdiff
path: root/win32-fixup.pl
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2001-08-04 15:49:55 +0000
committerAlexander Larsson <alexl@src.gnome.org>2001-08-04 15:49:55 +0000
commit3339995d877c825b22b344bda079fa3a05db55b4 (patch)
treee0d66f15cc52027c9719d8189d9d2f4c77e4563a /win32-fixup.pl
parent1ff027aa2ddb2fa3c6adf12c5a3fa1717c5ce25a (diff)
Hacky script to fix up your .msc.in files on windows. Dunno if this is a
2001-08-04 Alexander Larsson <alexl@redhat.com> * win32-fixup.pl: Hacky script to fix up your .msc.in files on windows. Dunno if this is a good solution yet. * build/win32/module.defs: Back down libiconv version to 1.3, since that is what tor distributes. * glib/glib.def: Update * gobject/makefile.msc.in: build gobject-query.exe and gmarshal.strings, add libiconv dependency to linklines. * gobject/marshal-genstrings.pl: New file. perl script to generate gmarshal.strings.
Diffstat (limited to 'win32-fixup.pl')
-rw-r--r--win32-fixup.pl35
1 files changed, 35 insertions, 0 deletions
diff --git a/win32-fixup.pl b/win32-fixup.pl
new file mode 100644
index 000000000..cb1a7a859
--- /dev/null
+++ b/win32-fixup.pl
@@ -0,0 +1,35 @@
+#!/usr/bin/perl
+
+$major = 1;
+$minor = 3;
+$micro = 7;
+$binary_age = 0;
+$interface_age = 0;
+$gettext_package = "glib20";
+
+sub process_file
+{
+ my $outfilename = shift;
+ my $infilename = $outfilename . ".in";
+
+ open (INPUT, "< $infilename") || exit 1;
+ open (OUTPUT, "> $outfilename") || exit 1;
+
+ while (<INPUT>) {
+ s/\@GLIB_MAJOR_VERSION\@/$major/g;
+ s/\@GLIB_MINOR_VERSION\@/$minor/g;
+ s/\@GLIB_MICRO_VERSION\@/$micro/g;
+ s/\@GLIB_INTERFACE_AGE\@/$interface_age/g;
+ s/\@GLIB_BINARY_AGE\@/$binary_age/g;
+ s/\@GETTEXT_PACKAGE\@/$gettext_package/g;
+ print OUTPUT;
+ }
+}
+
+process_file ("config.h.win32");
+process_file ("glibconfig.h.win32");
+process_file ("glib/makefile.msc");
+process_file ("gmodule/makefile.msc");
+process_file ("gobject/makefile.msc");
+process_file ("gthread/makefile.msc");
+process_file ("tests/makefile.msc");