summaryrefslogtreecommitdiff
path: root/src/.nuget
diff options
context:
space:
mode:
authorPat Gavlin <pgavlin@gmail.com>2016-06-06 20:29:54 +0000
committerPat Gavlin <pgavlin@gmail.com>2016-06-06 20:29:54 +0000
commite5ee95e03050ea8f1259676db81e43d16913ef97 (patch)
treec4e57b17fccf35babd19f13424eb6c72fc4a4f72 /src/.nuget
parentcc8831213d39450eceb7c4f51796dc305b1655b0 (diff)
parentd86a3436f6a03b8c5e39b28c106aba765ac40a8f (diff)
downloadcoreclr-e5ee95e03050ea8f1259676db81e43d16913ef97.tar.gz
coreclr-e5ee95e03050ea8f1259676db81e43d16913ef97.tar.bz2
coreclr-e5ee95e03050ea8f1259676db81e43d16913ef97.zip
Merge pull request #5513 from pgavlin/RemoveOldJITPackaging
Remove the deprecated JIT packaging tools.
Diffstat (limited to 'src/.nuget')
-rw-r--r--src/.nuget/BuildClrJitPackage.ps1181
-rw-r--r--src/.nuget/Microsoft.DotNet.ClrJit.nuspec20
-rw-r--r--src/.nuget/runtime.json19
-rw-r--r--src/.nuget/toolchain.osx.10.10-x64.Microsoft.DotNet.ClrJit.nuspec20
-rw-r--r--src/.nuget/toolchain.ubuntu.14.04-x64.Microsoft.DotNet.ClrJit.nuspec20
-rw-r--r--src/.nuget/toolchain.win7-x64.Microsoft.DotNet.ClrJit.nuspec21
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 &#169; 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 &#169; 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 &#169; 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 &#169; 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>