File tree Expand file tree Collapse file tree 2 files changed +7
-14
lines changed Expand file tree Collapse file tree 2 files changed +7
-14
lines changed Original file line number Diff line number Diff line change 6
6
#>
7
7
8
8
Param (
9
- [string ]$sha = ' HEAD' ,
10
- [string ]$libgit2Name = ' '
9
+ [string ]$sha = ' HEAD'
11
10
)
12
11
13
12
Set-StrictMode - Version Latest
@@ -82,11 +81,7 @@ Push-Location $libgit2Directory
82
81
83
82
Pop-Location
84
83
85
- if (! [string ]::IsNullOrEmpty($libgit2Name )) {
86
- $binaryFilename = $libgit2Name
87
- } else {
88
- $binaryFilename = " git2-" + $sha.Substring (0 , 7 )
89
- }
84
+ $binaryFilename = " git2-" + $sha.Substring (0 , 7 )
90
85
91
86
Set-Content - Encoding ASCII (Join-Path $projectDirectory " nuget.package\libgit2\libgit2_hash.txt" ) $sha
92
87
Original file line number Diff line number Diff line change 5
5
If set, run the libgit2 tests on the desired version.
6
6
. PARAMETER debug
7
7
If set, build the "Debug" configuration of libgit2, rather than "Release" (default).
8
+ . PARAMETER x86
9
+ If set, the 32-bit version will be built.
10
+ . PARAMETER x64
11
+ If set, the 64-bit version will be built.
8
12
#>
9
13
10
14
Param (
11
- [string ]$libgit2Name = ' ' ,
12
15
[switch ]$test ,
13
16
[switch ]$debug ,
14
17
[switch ]$x86 ,
@@ -23,12 +26,7 @@ $x86Directory = Join-Path $projectDirectory "nuget.package\runtimes\win-x86\nati
23
26
$x64Directory = Join-Path $projectDirectory " nuget.package\runtimes\win-x64\native"
24
27
$hashFile = Join-Path $projectDirectory " nuget.package\libgit2\libgit2_hash.txt"
25
28
$sha = Get-Content $hashFile
26
-
27
- if (! [string ]::IsNullOrEmpty($libgit2Name )) {
28
- $binaryFilename = $libgit2Name
29
- } else {
30
- $binaryFilename = " git2-" + $sha.Substring (0 , 7 )
31
- }
29
+ $binaryFilename = " git2-" + $sha.Substring (0 , 7 )
32
30
33
31
$build_clar = ' OFF'
34
32
if ($test.IsPresent ) { $build_clar = ' ON' }
You can’t perform that action at this time.
0 commit comments