Module: tools Branch: master Commit: 85faaac69fcc79951699c865d183e5bb5f17ec79 URL: http://source.winehq.org/git/tools.git/?a=commit;h=85faaac69fcc79951699c865d...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Jan 20 12:07:37 2011 +0100
transl: Take into account the new naming of .mc output files.
---
transl/parse_resfiles.php | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/transl/parse_resfiles.php b/transl/parse_resfiles.php index ac62342..23eb191 100644 --- a/transl/parse_resfiles.php +++ b/transl/parse_resfiles.php @@ -25,12 +25,8 @@ function create_resfiles($dir, $files) continue; }
- if (preg_match("/.mc$/", $file)) - { - $file .= ".rc"; - } - $targets .= preg_replace("/.rc$/", ".res", $file). " "; - $objs .= "$objdir/$dir/" . preg_replace("/.rc$/", ".res", $file) . " "; + $targets .= preg_replace("/.[mr]c$/", ".res", $file). " "; + $objs .= "$objdir/$dir/" . preg_replace("/.[mr]c$/", ".res", $file) . " "; } if ($targets == "") return;