2001-08-04 17:49:55 +02:00
|
|
|
#!/usr/bin/perl
|
|
|
|
|
|
|
|
$major = 1;
|
|
|
|
$minor = 3;
|
|
|
|
$micro = 7;
|
|
|
|
$binary_age = 0;
|
|
|
|
$interface_age = 0;
|
|
|
|
$gettext_package = "glib20";
|
2007-12-21 11:11:35 +01:00
|
|
|
$current_minus_age = 0;
|
2001-08-04 17:49:55 +02:00
|
|
|
|
|
|
|
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;
|
2007-12-21 11:11:35 +01:00
|
|
|
s/\@LT_CURRENT_MINUS_AGE@/$current_minus_age/g;
|
2001-08-04 17:49:55 +02:00
|
|
|
print OUTPUT;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
process_file ("config.h.win32");
|
|
|
|
process_file ("glibconfig.h.win32");
|
|
|
|
process_file ("glib/makefile.msc");
|
2007-12-21 11:11:35 +01:00
|
|
|
process_file ("glib/glib.rc");
|
2001-08-04 17:49:55 +02:00
|
|
|
process_file ("gmodule/makefile.msc");
|
2007-12-21 11:11:35 +01:00
|
|
|
process_file ("gmodule/gmodule.rc");
|
2001-08-04 17:49:55 +02:00
|
|
|
process_file ("gobject/makefile.msc");
|
2007-12-21 11:11:35 +01:00
|
|
|
process_file ("gobject/gobject.rc");
|
2001-08-04 17:49:55 +02:00
|
|
|
process_file ("gthread/makefile.msc");
|
2007-12-21 11:11:35 +01:00
|
|
|
process_file ("gthread/gthread.rc");
|
2001-08-04 17:49:55 +02:00
|
|
|
process_file ("tests/makefile.msc");
|