Commit fe9603c5 authored by Morten Welinder's avatar Morten Welinder

tools: fix version bump problem for libgsf

parent 6dde1c77
......@@ -3,7 +3,7 @@
* src/sheet-object-widget.c (draw_cairo_text): new
(sheet_widget_checkbox_draw_cairo): use draw_cairo_text
(sheet_widget_radio_button_draw_cairo): use draw_cairo_text
2010-09-24 Morten Welinder <terra@gnome.org>
* src/sheet-object-widget.c (sheet_widget_checkbox_draw_cairo):
......
2010-09-25 Morten Welinder <terra@gnome.org>
* release-do-bump: Fix libgsf problem.
2010-09-04 Morten Welinder <terra@gnome.org>
* Release 1.10.10
......
......@@ -26,10 +26,18 @@ my $date = sprintf ("%04d-%02d-%02d", $y, $m, $d);
local (*SRC);
local (*DST);
my $seen_epoch = 0;
open (*SRC, "<$filename") || die "$0: failed to read $filename: $!\n";
open (*DST, ">$filename.tmp") || die "$0: failed to write $filename.tmp: $!\n";
foreach (<SRC>) {
if (/^(\s*m4_define\(\[\S*_version_minor\],\s*\[)(\d+)(\]\).*)/) {
if (/version_epoch/) {
$seen_epoch = 1;
next;
}
if ($seen_epoch
? /^(\s*m4_define\(\[\S*_version_minor\],\s*\[)(\d+)(\]\).*)/
: /^(\s*m4_define\(\[\S*_version_micro\],\s*\[)(\d+)(\]\).*)/) {
$_ = $1 . ($2 + 1) . $3 . "\n";
}
print DST;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment