mirror of https://github.com/odrling/Aegisub
Update to ICU 53.1
This commit is contained in:
parent
32f5e00bf8
commit
86ebd15ffb
|
@ -38,8 +38,8 @@
|
||||||
branch = master
|
branch = master
|
||||||
[submodule "icu"]
|
[submodule "icu"]
|
||||||
path = vendor/icu
|
path = vendor/icu
|
||||||
url = git://github.com/sillsdev/icu4c.git
|
url = git://github.com/svn2github/icu4c.git
|
||||||
branch = trunk
|
branch = master
|
||||||
ignore = dirty
|
ignore = dirty
|
||||||
[submodule "boost"]
|
[submodule "boost"]
|
||||||
path = vendor/boost
|
path = vendor/boost
|
||||||
|
|
|
@ -17,16 +17,15 @@
|
||||||
namespace BuildTasks {
|
namespace BuildTasks {
|
||||||
public class DownloadTgzFile : Microsoft.Build.Utilities.Task {
|
public class DownloadTgzFile : Microsoft.Build.Utilities.Task {
|
||||||
public string Url { get; set; }
|
public string Url { get; set; }
|
||||||
public string Destination { get; set; }
|
|
||||||
public string OutputFile { get; set; }
|
public string OutputFile { get; set; }
|
||||||
public string Hash { get; set; }
|
public string Hash { get; set; }
|
||||||
|
|
||||||
private void DownloadArchive(string url, string unpackDest) {
|
private void DownloadArchive(string url, string unpackDest) {
|
||||||
var downloadStream = new System.Net.WebClient().OpenRead(url);
|
var downloadStream = new System.Net.WebClient().OpenRead(url);
|
||||||
var gzStream = new ICSharpCode.SharpZipLib.GZip.GZipInputStream(downloadStream);
|
var gzStream = new ICSharpCode.SharpZipLib.GZip.GZipInputStream(downloadStream);
|
||||||
var tarStream = new ICSharpCode.SharpZipLib.Tar.TarInputStream(gzStream);
|
using (var file = System.IO.File.Create(unpackDest)) {
|
||||||
var tarArchive = ICSharpCode.SharpZipLib.Tar.TarArchive.CreateInputTarArchive(tarStream);
|
gzStream.CopyTo(file);
|
||||||
tarArchive.ExtractContents(unpackDest);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool Execute() {
|
public override bool Execute() {
|
||||||
|
@ -42,7 +41,7 @@ namespace BuildTasks {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
DownloadArchive(this.Url, this.Destination);
|
DownloadArchive(this.Url, this.OutputFile);
|
||||||
}
|
}
|
||||||
catch (System.Exception e) {
|
catch (System.Exception e) {
|
||||||
this.Log.LogErrorFromException(e);
|
this.Log.LogErrorFromException(e);
|
||||||
|
|
|
@ -82,12 +82,11 @@
|
||||||
>
|
>
|
||||||
|
|
||||||
<!-- Generated with http://apps.icu-project.org/datacustom/ -->
|
<!-- Generated with http://apps.icu-project.org/datacustom/ -->
|
||||||
<!-- Includes Break Iterator and Collator data only -->
|
<!-- Includes Break Iterator and Display Name data only -->
|
||||||
<DownloadTgzFile
|
<DownloadTgzFile
|
||||||
Url="http://www.aegisub.org/~plorkyeran/icudt52l.dat.tgz"
|
Url="http://www.aegisub.org/~plorkyeran/icudt53l.dat.gz"
|
||||||
Destination="$(MSBuildThisFileDirectory)..\..\vendor\icu\source\data\in"
|
OutputFile="$(MSBuildThisFileDirectory)..\..\vendor\icu\source\data\in\icudt53l.dat"
|
||||||
OutputFile="$(MSBuildThisFileDirectory)..\..\vendor\icu\source\data\in\icudt52l.dat"
|
Hash="6b4244cdad08804fbb9c4f53e5fbf212321b80d1"
|
||||||
Hash="b611a32e857ab4474e3c0118bd09b0958026fe1d"
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<ExecShellScript
|
<ExecShellScript
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 51ec279270332aba5e8723d81d1a780072ed518c
|
Subproject commit 061be17bd589bb65d37b70c23513ab530cad7821
|
Loading…
Reference in New Issue