aboutsummaryrefslogtreecommitdiffstats
path: root/smart_change.pl
diff options
context:
space:
mode:
authorFrank Lichtenheld <djpig>2003-04-19 16:24:57 +0000
committerFrank Lichtenheld <djpig>2003-04-19 16:24:57 +0000
commit7898bda8d7ef22cef3bde7ad4fef8e343d6fe9ee (patch)
tree142386aedb1f781db93db3e7073c0911928c861d /smart_change.pl
parentca010e2419aaf5accb706eaa5dd8595f39bd353f (diff)
Changing behavior of -s option: The regexp is now applied on the whole file,
not line by line to allow multiline regexps. CVS version numbers smart_change.pl: 1.3 -> 1.4
Diffstat (limited to 'smart_change.pl')
-rwxr-xr-xsmart_change.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/smart_change.pl b/smart_change.pl
index 8b8d6cd9857..d0e64e4abaa 100755
--- a/smart_change.pl
+++ b/smart_change.pl
@@ -103,9 +103,10 @@ foreach my $lang (@opt_l) {
s/(translation="?)($origrev|$nextrev)("?)/$1$nextrev$3/;
verbose("Bump version number to $nextrev");
}
- $transtext .= &$substitute($_);
+ $transtext .= $_;
}
close (TRANS);
+ $transtext = &$substitute($transtext);
if ($origtext ne $transtext) {
verbose("Writing $transfile");
open (TRANS, "> $transfile");

© 2014-2024 Faster IT GmbH | imprint | privacy policy