[tasque/xbuild] [xbuild] Fix invalid files for translation found
- From: Antonius Riha <antoniusri src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tasque/xbuild] [xbuild] Fix invalid files for translation found
- Date: Thu, 18 Oct 2012 21:47:07 +0000 (UTC)
commit c12ea14f2febabbd831b179e4ee435c0ab25c74b
Author: Antonius Riha <antoniusriha gmail com>
Date: Thu Oct 18 22:27:42 2012 +0200
[xbuild] Fix invalid files for translation found
build/NormalizePath.cs | 5 ++++-
build/X.Common.targets | 6 +++---
2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/build/NormalizePath.cs b/build/NormalizePath.cs
index e3480e8..0ec092b 100644
--- a/build/NormalizePath.cs
+++ b/build/NormalizePath.cs
@@ -58,7 +58,10 @@ namespace Tasque.Build
var basePath = Environment.CurrentDirectory;
var targetPath = IO.Path.GetFullPath (path);
- return GetRelPath.InternalGetRelPath (basePath, targetPath);
+ path = GetRelPath.InternalGetRelPath (basePath, targetPath);
+ if (string.IsNullOrWhiteSpace (path))
+ path = ".";
+ return path;
}
}
}
diff --git a/build/X.Common.targets b/build/X.Common.targets
index b202a88..33bc4a2 100644
--- a/build/X.Common.targets
+++ b/build/X.Common.targets
@@ -28,9 +28,9 @@
</CreateProperty>
<!-- SrcDir -->
- <CreateProperty Value="$(TopSrcDir)\$(_SrcDirStrip)">
- <Output TaskParameter="Value" PropertyName="SrcDir" />
- </CreateProperty>
+ <NormalizePath Path="$(TopSrcDir)\$(_SrcDirStrip)">
+ <Output TaskParameter="Path" PropertyName="SrcDir" />
+ </NormalizePath>
<!-- po dirs: Assume it's <top_level>/po -->
<CreateProperty Condition=" '$(PoBuildDir)' == '' " Value="$(TopBuildDir)\po">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]