aboutsummaryrefslogtreecommitdiff
path: root/scripts/azure-pipelines/windows/Check-CMakeFunctionDocumentation.ps1
diff options
context:
space:
mode:
authornicole mazzuca <mazzucan@outlook.com>2020-12-16 13:14:35 -0800
committerGitHub <noreply@github.com>2020-12-16 13:14:35 -0800
commit30767175d52d9667ce37d96fe1a7d1438dc94ea1 (patch)
tree982999e2593b2d8bc580e25ef9f50f84d30cb6be /scripts/azure-pipelines/windows/Check-CMakeFunctionDocumentation.ps1
parentd52fbe6a45c9ee0736edb42be4d688ae858bc215 (diff)
downloadvcpkg-30767175d52d9667ce37d96fe1a7d1438dc94ea1.tar.gz
vcpkg-30767175d52d9667ce37d96fe1a7d1438dc94ea1.zip
[vcpkg ci] upload diff from clang-format to artifacts (#15141)
* [vcpkg ci] upload diff from clang-format to artifacts this allows people who do not have access to clang-format to format their code via diff
Diffstat (limited to 'scripts/azure-pipelines/windows/Check-CMakeFunctionDocumentation.ps1')
-rw-r--r--scripts/azure-pipelines/windows/Check-CMakeFunctionDocumentation.ps130
1 files changed, 0 insertions, 30 deletions
diff --git a/scripts/azure-pipelines/windows/Check-CMakeFunctionDocumentation.ps1 b/scripts/azure-pipelines/windows/Check-CMakeFunctionDocumentation.ps1
deleted file mode 100644
index 5505c3401..000000000
--- a/scripts/azure-pipelines/windows/Check-CMakeFunctionDocumentation.ps1
+++ /dev/null
@@ -1,30 +0,0 @@
-[CmdletBinding()]
-Param(
- [Parameter(Mandatory=$True)]
- [string]$Root
-)
-
-if (-not (Test-Path "$Root/.vcpkg-root"))
-{
- Write-Error "The vcpkg root was not at $Root"
- throw
-}
-
-& "$Root/docs/regenerate.ps1" -VcpkgRoot $Root -WarningAction 'Stop'
-
-$changedFiles = & "$PSScriptRoot/Get-ChangedFiles.ps1" -Directory "$Root/docs"
-if ($null -ne $changedFiles)
-{
- $msg = @(
- "",
- "The documentation files do not seem to have been regenerated.",
- "Please re-run `docs/regenerate.ps1`."
- )
- $msg += ""
-
- $msg += "This should produce the following diff:"
- $msg += git diff "$Root/docs"
-
- Write-Error ($msg -join "`n")
- throw
-}