From 8918209f54f22935aa67a92dfea78b9a1623361b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 18 Feb 2013 20:30:28 +0100 Subject: [PATCH] Fix unintended rename of workfiles --- am_edit | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/am_edit b/am_edit index 97e7aec..c15adba 100644 --- a/am_edit +++ b/am_edit @@ -395,21 +395,21 @@ sub processMakefile ($) if ($MakefileData =~ /\n$lookup/) { my $condition = $1; my $depfiles = $2; - my $wortdefiles; + my $workfiles; if ($dep_finals) { # Add the conditions on every line, since # there may be line continuations in the list. - $wortdefiles = "$dep_files $dep_finals $depfiles"; - $wortdefiles =~ s/\034/\034$condition\@KDE_USE_FINAL_TRUE\@\t/g; - $lines = "$condition\@KDE_USE_FINAL_TRUE\@DEP_FILES = $wortdefiles\n"; - $wortdefiles = "$dep_files $depfiles"; - $wortdefiles =~ s/\034/\034$condition\@KDE_USE_FINAL_FALSE\@\t/g; - $lines .= "$condition\@KDE_USE_FINAL_FALSE\@DEP_FILES = $wortdefiles"; + $workfiles = "$dep_files $dep_finals $depfiles"; + $workfiles =~ s/\034/\034$condition\@KDE_USE_FINAL_TRUE\@\t/g; + $lines = "$condition\@KDE_USE_FINAL_TRUE\@DEP_FILES = $workfiles\n"; + $workfiles = "$dep_files $depfiles"; + $workfiles =~ s/\034/\034$condition\@KDE_USE_FINAL_FALSE\@\t/g; + $lines .= "$condition\@KDE_USE_FINAL_FALSE\@DEP_FILES = $workfiles"; } else { - $wortdefiles = "$dep_files $depfiles"; - $wortdefiles =~ s/\034/\034$condition\t/g; - $lines = $condition . "DEP_FILES = $wortdefiles"; + $workfiles = "$dep_files $depfiles"; + $workfiles =~ s/\034/\034$condition\t/g; + $lines = $condition . "DEP_FILES = $workfiles"; } substituteLine($lookup, $lines); }