aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-01-30 18:13:58 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2017-01-30 18:13:58 -0800
commit872332df343cf01a5b6309a41b1f9c84bcca1bf0 (patch)
treeef0a9ea278f2c28d5708876d5bb0d9a1208d8af4 /scripts
parent72ebfe4a14deae4b2bed5961884bc2d222e7e795 (diff)
downloadvcpkg-872332df343cf01a5b6309a41b1f9c84bcca1bf0.tar.gz
vcpkg-872332df343cf01a5b6309a41b1f9c84bcca1bf0.zip
Remove doVcpkgRelease.ps1
Diffstat (limited to 'scripts')
-rw-r--r--scripts/doVcpkgRelease.ps184
1 files changed, 0 insertions, 84 deletions
diff --git a/scripts/doVcpkgRelease.ps1 b/scripts/doVcpkgRelease.ps1
deleted file mode 100644
index fb964d0c3..000000000
--- a/scripts/doVcpkgRelease.ps1
+++ /dev/null
@@ -1,84 +0,0 @@
-[CmdletBinding()]
-param(
-
-)
-$ErrorActionPreference = "Stop"
-$version = git show HEAD:toolsrc/VERSION.txt
-#Remove the quotes from the string
-$version = $version.Substring(1, $version.length - 2)
-$versionRegex = '^\d+\.\d+\.\d+$'
-if (!($version -match $versionRegex))
-{
- throw [System.ArgumentException] ("Expected version in the form d.d.d but was " + $version)
-}
-
-Write-Verbose("New version is " + $version)
-$gitTagString = "v$version"
-
-# Intentionally doesn't have ^ (=starts with) to match remote tags as well
-$matchingTags = git tag | Where-Object {$_ -match "$gitTagString$"}
-if ($matchingTags.Length -gt 0)
-{
- throw [System.ArgumentException] ("Git tag matches existing tags: " + $matchingTags)
-}
-
-$gitHash = git rev-parse HEAD
-Write-Verbose("Git hash is " + $gitHash)
-
-$scriptsDir = split-path -parent $MyInvocation.MyCommand.Definition
-$vcpkgRootDir = & $scriptsDir\findFileRecursivelyUp.ps1 $scriptsDir .vcpkg-root
-$gitStartOfHash = $gitHash.substring(0,6)
-$versionWithStartOfHash = "$version-$gitStartOfHash"
-$buildPath = "$vcpkgRootDir\build-$versionWithStartOfHash"
-$releasePath = "$vcpkgRootDir\release-$versionWithStartOfHash"
-Write-Verbose("Build Path " + $buildPath)
-Write-Verbose("Release Path " + $releasePath)
-
-# 0 is metrics disabled, 1 is metrics enabled
-for ($disableMetrics = 0; $disableMetrics -le 1; $disableMetrics++)
-{
-
- if (!(Test-Path $buildPath))
- {
- New-Item -ItemType directory -Path $buildPath -force | Out-Null
- }
-
- if (!(Test-Path $releasePath))
- {
- New-Item -ItemType directory -Path $releasePath -force | Out-Null
- }
-
- # Partial checkout for building vcpkg
- $dotGitDir = "$vcpkgRootDir\.git"
- $workTreeForBuildOnly = "$buildPath"
- $checkoutForBuildOnly = ".\scripts",".\toolsrc",".vcpkg-root" # Must be relative to the root of the repository
- Write-Verbose("Creating partial temporary checkout: $buildPath")
- git --git-dir="$dotGitDir" --work-tree="$workTreeForBuildOnly" checkout $gitHash -f -q -- $checkoutForBuildOnly
- git reset
-
- & "$buildPath\scripts\bootstrap.ps1" -disableMetrics $disableMetrics
-
- # Full checkout which will be a zip along with the executables from the previous step
- $workTree = "$releasePath"
- $checkoutThisDir = ".\" # Must be relative to the root of the repository
- Write-Verbose("Creating temporary checkout: $releasePath")
- git --git-dir=$dotGitDir --work-tree=$workTree checkout $gitHash -f -q -- $checkoutThisDir
- git reset
-
- Copy-Item $buildPath\vcpkg.exe $releasePath\vcpkg.exe | Out-Null
- Copy-Item $buildPath\scripts\vcpkgmetricsuploader.exe $releasePath\scripts\vcpkgmetricsuploader.exe | Out-Null
-
- Write-Verbose("Archiving")
- $outputArchive = "$vcpkgRootDir\vcpkg-$versionWithStartOfHash.zip"
- if ($disableMetrics -ne 0)
- {
- $outputArchive = "$vcpkgRootDir\vcpkg-$versionWithStartOfHash-external.zip"
- }
- Compress-Archive -Path "$releasePath\*" -CompressionLevel Optimal -DestinationPath $outputArchive -Force | Out-Null
-
- Write-Verbose("Removing temporary checkouts: $releasePath")
- Remove-Item -recurse $buildPath | Out-Null
- Remove-Item -recurse $releasePath | Out-Null
-
- Write-Verbose("Redistributable archive is: $outputArchive")
-} \ No newline at end of file