[tasque/xbuild] [xbuild] Make i18n tool paths adjustable



commit 1cae1c466245474040c7eea53aaa97d6c6512db9
Author: Antonius Riha <antoniusriha gmail com>
Date:   Fri Aug 31 19:19:17 2012 +0200

    [xbuild] Make i18n tool paths adjustable

 po/po.mdproj |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/po/po.mdproj b/po/po.mdproj
index d824307..f7df1c5 100644
--- a/po/po.mdproj
+++ b/po/po.mdproj
@@ -107,15 +107,23 @@
     <Prefix Condition=" '$(Prefix)' == '' ">..\build\bin</Prefix>
     <DataDir Condition=" '$(DataDir)' == '' ">$(Prefix)\share</DataDir>
     <LocaleDir Condition=" '$(LocaleDir)' == '' ">$(DataDir)\locale</LocaleDir>
-    <MsgFmt>msgfmt</MsgFmt>
-    <IntlToolUpdate>intltool-update</IntlToolUpdate>
   </PropertyGroup>
+
   <PropertyGroup Condition="Exists('$(MSBuildProgramFiles32)\GnuWin32\bin\msgfmt.exe')">
     <MsgFmt>$(MSBuildProgramFiles32)\GnuWin32\bin\msgfmt.exe</MsgFmt>
   </PropertyGroup>
   <PropertyGroup Condition="Exists('$(MSBuildProgramFiles32)\GnuWin32\bin\intltool-update.exe')">
     <IntlToolUpdate>$(MSBuildProgramFiles32)\GnuWin32\bin\intltool-update.exe</IntlToolUpdate>
   </PropertyGroup>
+
+  <!-- Fallbacks -->
+  <PropertyGroup Condition=" '$(MsgFmt)' == '' ">
+    <MsgFmt>msgfmt</MsgFmt>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(IntlToolUpdate)' == '' ">
+    <IntlToolUpdate>intltool-update</IntlToolUpdate>
+  </PropertyGroup>
+
   <Target Name="Rebuild" DependsOnTargets="Clean;Build" />
   <Target Name="Build">
     <Exec Command="$(MsgFmt) -o %(FileName).gmo @(GettextTranslation)" />



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]