Alexandre Julliard : transl: Take into account the new naming of . mc output files.
Alexandre Julliard
julliard at winehq.org
Thu Jan 20 13:14:05 CST 2011
Module: tools
Branch: master
Commit: 85faaac69fcc79951699c865d183e5bb5f17ec79
URL: http://source.winehq.org/git/tools.git/?a=commit;h=85faaac69fcc79951699c865d183e5bb5f17ec79
Author: Alexandre Julliard <julliard at 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;
More information about the wine-cvs
mailing list