3 # $Id: bump.pl,v 1.44 2007/07/10 19:13:51 gumpu Exp $
20 foreach my $line (@{$lines}) {
21 if ($line =~ m/^ROBODoc\sVersion/) {
23 $line =~ s/\d+\.\d+\.\d+\s\S+\s2/$major.$minor.$revision $month 2/;
38 foreach my $line (@{$lines}) {
39 if ($line =~ m/define\sVERSION\s"/) {
41 $line = "#define VERSION \"$major.$minor.$revision\"\n";
55 foreach my $line (@{$lines}) {
56 if ($line =~ m/AM_INIT_AUTOMAKE/) {
58 $line = "AM_INIT_AUTOMAKE(robodoc, $major.$minor.$revision)\n";
61 } elsif ($line =~ m/AC_INIT/) {
63 $line = "AC_INIT(robodoc, $major.$minor.$revision)\n";
78 foreach my $line (@{$lines}) {
79 if ($line =~ m/TH\sROBODoc/) {
81 $line =~ s/ROBODoc\s\d+\.\d+\.\d+/ROBODoc $major.$minor.$revision/;
82 $line =~ s/"\S+\s2/"$month 2/;
98 foreach my $line (@{$lines}) {
99 if ($line =~ m/title>ROBODoc\s\d/) {
101 $line =~ s/title>ROBODoc\s\d+\.\d+\.\d+/title>ROBODoc $major.$minor.$revision/;
117 foreach my $line (@{$lines}) {
118 if ($line =~ /^PROJECT\_VERSION/) {
120 $line =~ s/\d+\.\d+\.\d+/$major.$minor.$revision/;
124 } elsif ($line =~ /^PROJECT\_RELEASE/) {
126 $line =~ s/\d/$release/;
141 foreach my $line (@{$lines}) {
142 if ($line =~ /^VERS/) {
144 $line =~ s/\d+\.\d+\.\d+/$major.$minor.$revision/;
148 } elsif ($line =~ /^RELEASE/) {
150 $line =~ s/\d/$release/;
162 $updaters{"Docs/manual.xml"} = \&manual;
163 $updaters{"Docs/robodoc.1"} = \&robodoc_1;
164 $updaters{"Source/robodoc.h"} = \&robodoc_h;
165 $updaters{"README"} = \&readme;
166 $updaters{"configure.in"} = \&configure_in;
167 $updaters{"rpm.mk"} = \&rpm_mk;
168 $updaters{"Source/makefile.plain"} = \&makefile_plain;
170 foreach my $filename ( keys %updaters ) {
171 print $filename, "\n";
172 my $file = IO::File->new("<$filename") or die $filename;
175 $file = IO::File->new(">$filename.bup") or die $filename;
176 $updaters{$filename}( $file, \@lines );
178 rename "$filename.bup", $filename;
182 Copyright (C) 1994-2007 Frans Slothouber, Jacco van Weert, Petteri Kettunen,
183 Bernd Koesling, Thomas Aglassinger, Anthon Pang, Stefan Kost, David Druffner,
184 Sasha Vasko, Kai Hofmann, Thierry Pierron, Friedrich Haase, and Gergely Budai.
186 This file is part of ROBODoc
188 ROBODoc is free software; you can redistribute it and/or modify
189 it under the terms of the GNU General Public License as published by
190 the Free Software Foundation; either version 3 of the License, or
191 (at your option) any later version.
193 This program is distributed in the hope that it will be useful,
194 but WITHOUT ANY WARRANTY; without even the implied warranty of
195 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
196 GNU General Public License for more details.
198 You should have received a copy of the GNU General Public License
199 along with this program. If not, see <http://www.gnu.org/licenses/>.