[gnumeric] tools: fix version bump problem for libgsf



commit fe9603c5e8a40dd9d0394aa897e47492260df168
Author: Morten Welinder <terra gnome org>
Date:   Sat Sep 25 13:10:22 2010 -0400

    tools: fix version bump problem for libgsf

 ChangeLog             |    2 +-
 tools/ChangeLog       |    4 ++++
 tools/release-do-bump |   10 +++++++++-
 3 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 79430a0..d865b3c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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):
diff --git a/tools/ChangeLog b/tools/ChangeLog
index 7b6a3bd..1d41e0c 100644
--- a/tools/ChangeLog
+++ b/tools/ChangeLog
@@ -1,3 +1,7 @@
+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
diff --git a/tools/release-do-bump b/tools/release-do-bump
index 28ad663..d0bc5fc 100644
--- a/tools/release-do-bump
+++ b/tools/release-do-bump
@@ -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;



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