forked from mia/Aegisub
Force autocrlf to input for ffmpeg since it barfs on Windows newlines
This commit is contained in:
parent
497f23e22d
commit
8ca862fa93
2 changed files with 13 additions and 2 deletions
|
@ -69,9 +69,16 @@ type GitProject() =
|
||||||
ignore <| IO.Directory.CreateDirectory root
|
ignore <| IO.Directory.CreateDirectory root
|
||||||
|
|
||||||
callGit root (sprintf "clone %s" url.ItemSpec)
|
callGit root (sprintf "clone %s" url.ItemSpec)
|
||||||
|
|
||||||
|
let dir = (sprintf "%s\\%s" root projectName)
|
||||||
let branch = url.GetMetadata("Branch")
|
let branch = url.GetMetadata("Branch")
|
||||||
if branch.Length > 0
|
if branch.Length > 0
|
||||||
then callGit (sprintf "%s\\%s" root projectName) (sprintf "checkout %s" branch)
|
then callGit dir (sprintf "checkout %s" branch)
|
||||||
|
|
||||||
|
let autocrlf = url.GetMetadata "AutoCrlf"
|
||||||
|
if autocrlf.Length > 0
|
||||||
|
then callGit dir (sprintf "config --local core.autocrlf %s" autocrlf)
|
||||||
|
callGit dir "reset --hard"
|
||||||
|
|
||||||
let updateGit (url : ITaskItem) =
|
let updateGit (url : ITaskItem) =
|
||||||
let projectName = Uri(url.ItemSpec).Segments.Last().Replace(".git", "")
|
let projectName = Uri(url.ItemSpec).Segments.Last().Replace(".git", "")
|
||||||
|
|
|
@ -32,7 +32,11 @@ Aegisub Project http://www.aegisub.org/
|
||||||
<GitProject Include="git://anongit.freedesktop.org/fribidi/fribidi" />
|
<GitProject Include="git://anongit.freedesktop.org/fribidi/fribidi" />
|
||||||
<GitProject Include="git://git.sv.nongnu.org/freetype/freetype2.git" />
|
<GitProject Include="git://git.sv.nongnu.org/freetype/freetype2.git" />
|
||||||
<GitProject Include="git://github.com/madler/zlib.git" />
|
<GitProject Include="git://github.com/madler/zlib.git" />
|
||||||
<GitProject Include="git://source.ffmpeg.org/ffmpeg.git" />
|
<GitProject Include="git://source.ffmpeg.org/ffmpeg.git">
|
||||||
|
<!-- FFmpeg's build system manages to not work with Windows newlines, so
|
||||||
|
disable autocrlf even if the user has it enabled globally -->
|
||||||
|
<AutoCrlf>input</AutoCrlf>
|
||||||
|
</GitProject>
|
||||||
<GitProject Include="git://github.com/tgoyne/ffms2.git">
|
<GitProject Include="git://github.com/tgoyne/ffms2.git">
|
||||||
<Branch>trunk</Branch>
|
<Branch>trunk</Branch>
|
||||||
</GitProject>
|
</GitProject>
|
||||||
|
|
Loading…
Reference in a new issue