diff options
author | Pat Gavlin <pagavlin@microsoft.com> | 2016-06-06 08:58:39 -0700 |
---|---|---|
committer | Pat Gavlin <pagavlin@microsoft.com> | 2016-06-06 08:58:39 -0700 |
commit | d86a3436f6a03b8c5e39b28c106aba765ac40a8f (patch) | |
tree | 744269740b4dcd43c1e5ab997b80859ea38e9335 | |
parent | f620099b3fafff396ebd43ffc54407e2a34c56ac (diff) | |
download | coreclr-d86a3436f6a03b8c5e39b28c106aba765ac40a8f.tar.gz coreclr-d86a3436f6a03b8c5e39b28c106aba765ac40a8f.tar.bz2 coreclr-d86a3436f6a03b8c5e39b28c106aba765ac40a8f.zip |
Remove the deprecated JIT packaging tools.
-rw-r--r-- | src/.nuget/BuildClrJitPackage.ps1 | 181 | ||||
-rw-r--r-- | src/.nuget/Microsoft.DotNet.ClrJit.nuspec | 20 | ||||
-rw-r--r-- | src/.nuget/runtime.json | 19 | ||||
-rw-r--r-- | src/.nuget/toolchain.osx.10.10-x64.Microsoft.DotNet.ClrJit.nuspec | 20 | ||||
-rw-r--r-- | src/.nuget/toolchain.ubuntu.14.04-x64.Microsoft.DotNet.ClrJit.nuspec | 20 | ||||
-rw-r--r-- | src/.nuget/toolchain.win7-x64.Microsoft.DotNet.ClrJit.nuspec | 21 |
6 files changed, 0 insertions, 281 deletions
diff --git a/src/.nuget/BuildClrJitPackage.ps1 b/src/.nuget/BuildClrJitPackage.ps1 deleted file mode 100644 index dcc2c09d1f..0000000000 --- a/src/.nuget/BuildClrJitPackage.ps1 +++ /dev/null @@ -1,181 +0,0 @@ -<# -.SYNOPSIS -Builds and publishes the cross-platform and combined pacakges for ClrJit. Cross-platform binaries -are sourced from Azure Blob Storage. -#> - -[CmdletBinding()] -Param( - # The feed to publish to. - [string]$feed, - - # The API key to use during publishing. - [string]$apiKey, - - # The Azure account to use. - [string]$storageAccount, - - # The Azure account key to use. - [string]$storageKey, - - # The Azure container to use. - [string]$storageContainer, - - # The path to NuGet. Defaults to "nuget.exe". - [string]$nugetPath = "nuget.exe", - - # The output directory for the cross-platform binaries. - [string]$binariesDir, - - # The package output directory. - [string]$packageOutputDir, - - # The directory that contains the .nuspec files that will be used to create the - # cross-platform and combined packages. - [string]$nuspecDir, - - # The build number, if any. - [string]$buildNumber = $null -) - -function Get-Latest-Blob-Name -{ - Param([array]$blobs, [string]$expectedSuffix) - - $chosenBlob = $null - $chosenDate = $null - foreach ($blob in $blobs) - { - if ($blob.name -notlike "*$expectedSuffix") - { - continue - } - - $date = [datetime]($blob.properties."last-modified") - if (!$chosenBlob -or ($chosenDate -and $date -ge $chosenDate)) - { - $chosenBlob = $blob.name - $chosenDate = $date - } - } - - return $chosenBlob -} - -# Set the CWD -[System.Environment]::CurrentDirectory = Get-Location - -# Get the list of blobs in storage -$json = "" -$blobs = @() -try -{ - $tmpFileName = [System.IO.Path]::GetTempFileName() - azure storage blob list -a $storageAccount -k $storageKey $storageContainer --json > $tmpFileName - $json = [System.IO.File]::ReadAllText($tmpFileName) - $blobs = ConvertFrom-Json $json -} -catch -{ - Write-Error "Could not fetch blobs from Azure." - Write-Error "Response: $json" - exit 1 -} - -# Find, fetch, and extract the latest Ubuntu and OSX blobs -[System.Reflection.Assembly]::LoadWithPartialName("System.IO.Compression.FileSystem") | Out-Null - -$ubuntuBlob = Get-Latest-Blob-Name $blobs "Ubuntu.14.04_CoreClr_x64_Release_Enu.zip" -$osxBlob = Get-Latest-Blob-Name $blobs "OSX_CoreClr_x64_Release_Enu.zip" - -if (!$ubuntuBlob) -{ - Write-Error "Could not locate an Ubuntu drop in Azure." - exit 1 -} - -if (!$osxBlob) -{ - Write-Error "Could not locate an OS X drop in Azure." - exit 1 -} - -azure storage blob download -m -q -a $storageAccount -k $storageKey $storageContainer $ubuntuBlob -if ($LastExitCode -ne 0) -{ - Write-Error "Failed to fetch Ubuntu drop $ubuntuBlob from Azure." - exit 1 -} - -azure storage blob download -m -q -a $storageAccount -k $storageKey $storageContainer $osxBlob -if ($LastExitCode -ne 0) -{ - Write-Error "Failed to fetch OS X drop $osxBlob from Azure." - exit 1 -} - -$ubuntuDirectory = [System.IO.Path]::GetFileNameWithoutExtension($ubuntuBlob) -try -{ - [System.IO.Compression.ZipFile]::ExtractToDirectory($ubuntuBlob, $ubuntuDirectory) -} -catch -{ - Write-Error "Failed to extract Ubuntu drop to $ubuntuDirectory`: $_.Exception.Message" - exit 1 -} - -$osxDirectory = [System.IO.Path]::GetFileNameWithoutExtension($osxBlob) -try -{ - [System.IO.Compression.ZipFile]::ExtractToDirectory($osxBlob, $osxDirectory) -} -catch -{ - Write-Error "Failed to extract OS X drop to $osxDirectory`: $_.Exception.Message" - exit 1 -} - -# Gather the bits from the Ubuntu and OSX blobs into the bin directory -Copy-Item -Path @("$ubuntuDirectory\libclrjit.so", "$osxDirectory\libclrjit.dylib") -Destination $binariesDir -if ($LastExitCode -ne 0) -{ - Write-Error "Failed to copy cross-platform bits to $binariesDir." - exit 1 -} - -# Gather the .nuspecs and their dependencies into the package output directory -$files = @( - "$nuspecDir\Microsoft.DotNet.ClrJit.nuspec", - "$nuspecDir\runtime.json", - "$nuspecDir\toolchain.osx.10.10-x64.Microsoft.DotNet.ClrJit.nuspec", - "$nuspecDir\toolchain.ubuntu.14.04-x64.Microsoft.DotNet.ClrJit.nuspec" -) -Copy-Item -Path $files -Destination $packageOutputDir -if ($LastExitCode -ne 0) -{ - Write-Error "Failed to copy nuspecs to $packageOutputDir." - exit 1 -} - -# Create the packages. -$packages = @( - "toolchain.osx.10.10-x64.Microsoft.DotNet.ClrJit", - "toolchain.ubuntu.14.04-x64.Microsoft.DotNet.ClrJit", - "Microsoft.DotNet.ClrJit" -) - -$packageVersion = "1.0.8-prerelease" -if ($buildNumber) -{ - $packageVersion = $packageVersion + "-" + $buildNumber -} - -# Note: nuget appears to exit with code 0 in every case, so there's no way to detect failure here -# other than looking at the output. -foreach ($package in $packages) { - Invoke-Expression "$nugetPath pack $packageOutputDir\$package.nuspec -NoPackageAnalysis -NoDefaultExcludes -OutputDirectory $packageOutputDir -Version $packageVersion" - Invoke-Expression "$nugetPath push -NonInteractive $packageOutputDir\$package.nupkg -s $feed $apiKey" -} - -Invoke-Expression "$nugetPath push -NonInteractive $packageOutputDir\toolchain.win7-x64.Microsoft.DotNet.ClrJit.nupkg -s $feed $apiKey" diff --git a/src/.nuget/Microsoft.DotNet.ClrJit.nuspec b/src/.nuget/Microsoft.DotNet.ClrJit.nuspec deleted file mode 100644 index ee3e6e148d..0000000000 --- a/src/.nuget/Microsoft.DotNet.ClrJit.nuspec +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0"?> -<package > - <metadata> - <id>Microsoft.DotNet.ClrJit</id> - <version>1.0.8-prerelease</version> - <title>Microsoft DotNet Standalone Managed to Native Code-Generator</title> - <authors>Microsoft</authors> - <owners>Microsoft</owners> - <licenseUrl>http://go.microsoft.com/fwlink/?LinkId=329770</licenseUrl> - <projectUrl>https://github.com/dotnet/coreclr</projectUrl> - <iconUrl>http://go.microsoft.com/fwlink/?LinkID=288859</iconUrl> - <requireLicenseAcceptance>true</requireLicenseAcceptance> - <description>Provides standalone managed to native code-generator</description> - <releaseNotes>Initial release</releaseNotes> - <copyright>Copyright © Microsoft Corporation</copyright> - </metadata> - <files> - <file src="runtime.json" /> - </files> -</package> diff --git a/src/.nuget/runtime.json b/src/.nuget/runtime.json deleted file mode 100644 index f922e86836..0000000000 --- a/src/.nuget/runtime.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "runtimes": { - "win7-x64": { - "Microsoft.DotNet.ClrJit": { - "toolchain.win7-x64.Microsoft.DotNet.ClrJit": "1.0.8-prerelease-00001" - } - }, - "ubuntu.14.04-x64": { - "Microsoft.DotNet.ClrJit": { - "toolchain.ubuntu.14.04-x64.Microsoft.DotNet.ClrJit": "1.0.8-prerelease-00001" - } - }, - "osx.10.10-x64": { - "Microsoft.DotNet.ClrJit": { - "toolchain.osx.10.10-x64.Microsoft.DotNet.ClrJit": "1.0.8-prerelease-00001" - } - } - } -} diff --git a/src/.nuget/toolchain.osx.10.10-x64.Microsoft.DotNet.ClrJit.nuspec b/src/.nuget/toolchain.osx.10.10-x64.Microsoft.DotNet.ClrJit.nuspec deleted file mode 100644 index f1eb7e4540..0000000000 --- a/src/.nuget/toolchain.osx.10.10-x64.Microsoft.DotNet.ClrJit.nuspec +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0"?> -<package > - <metadata> - <id>toolchain.osx.10.10-x64.Microsoft.DotNet.ClrJit</id> - <version>1.0.8-prerelease</version> - <title>Microsoft DotNet Standalone Managed to Native Code-Generator</title> - <authors>Microsoft</authors> - <owners>Microsoft</owners> - <licenseUrl>http://go.microsoft.com/fwlink/?LinkId=329770</licenseUrl> - <projectUrl>https://github.com/dotnet/coreclr</projectUrl> - <iconUrl>http://go.microsoft.com/fwlink/?LinkID=288859</iconUrl> - <requireLicenseAcceptance>true</requireLicenseAcceptance> - <description>Provides standalone managed to native code-generator</description> - <releaseNotes>Initial release</releaseNotes> - <copyright>Copyright © Microsoft Corporation</copyright> - </metadata> - <files> - <file src="../libclrjit.dylib" target="runtimes/osx.10.10-x64/native/libclrjit.dylib" /> - </files> -</package> diff --git a/src/.nuget/toolchain.ubuntu.14.04-x64.Microsoft.DotNet.ClrJit.nuspec b/src/.nuget/toolchain.ubuntu.14.04-x64.Microsoft.DotNet.ClrJit.nuspec deleted file mode 100644 index 45e50daba4..0000000000 --- a/src/.nuget/toolchain.ubuntu.14.04-x64.Microsoft.DotNet.ClrJit.nuspec +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0"?> -<package > - <metadata> - <id>toolchain.ubuntu.14.04-x64.Microsoft.DotNet.ClrJit</id> - <version>1.0.8-prerelease</version> - <title>Microsoft DotNet Standalone Managed to Native Code-Generator</title> - <authors>Microsoft</authors> - <owners>Microsoft</owners> - <licenseUrl>http://go.microsoft.com/fwlink/?LinkId=329770</licenseUrl> - <projectUrl>https://github.com/dotnet/coreclr</projectUrl> - <iconUrl>http://go.microsoft.com/fwlink/?LinkID=288859</iconUrl> - <requireLicenseAcceptance>true</requireLicenseAcceptance> - <description>Provides standalone managed to native code-generator</description> - <releaseNotes>Initial release</releaseNotes> - <copyright>Copyright © Microsoft Corporation</copyright> - </metadata> - <files> - <file src="../libclrjit.so" target="runtimes/ubuntu.14.04-x64/native/libclrjit.so" /> - </files> -</package> diff --git a/src/.nuget/toolchain.win7-x64.Microsoft.DotNet.ClrJit.nuspec b/src/.nuget/toolchain.win7-x64.Microsoft.DotNet.ClrJit.nuspec deleted file mode 100644 index 1f4bba3fb2..0000000000 --- a/src/.nuget/toolchain.win7-x64.Microsoft.DotNet.ClrJit.nuspec +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0"?> -<package > - <metadata> - <id>toolchain.win7-x64.Microsoft.DotNet.ClrJit</id> - <version>1.0.8-prerelease</version> - <title>Microsoft DotNet Standalone Managed to Native Code-Generator</title> - <authors>Microsoft</authors> - <owners>Microsoft</owners> - <licenseUrl>http://go.microsoft.com/fwlink/?LinkId=329770</licenseUrl> - <projectUrl>https://github.com/dotnet/coreclr</projectUrl> - <iconUrl>http://go.microsoft.com/fwlink/?LinkID=288859</iconUrl> - <requireLicenseAcceptance>true</requireLicenseAcceptance> - <description>Provides standalone managed to native code-generator</description> - <releaseNotes>Initial release</releaseNotes> - <copyright>Copyright © Microsoft Corporation</copyright> - </metadata> - <files> - <file src="..\clrjit.dll" target="runtimes\win7-x64\native\clrjit.dll" /> - <file src="..\PDB\clrjit.pdb" target="runtimes\win7-x64\native\clrjit.pdb" /> - </files> -</package> |