From 7898bda8d7ef22cef3bde7ad4fef8e343d6fe9ee Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Sat, 19 Apr 2003 16:24:57 +0000 Subject: 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 --- smart_change.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'smart_change.pl') 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"); -- cgit v1.2.3