]>
Commit | Line | Data |
---|---|---|
a4b75251 TL |
1 | # SPDX-License-Identifier: BSD-3-Clause |
2 | # Copyright 2016-2017, Intel Corporation | |
3 | # | |
4 | # CHECK_WHITESPACE.PS1 -- script to check coding style | |
5 | # | |
6 | # XXX - integrate with VS projects and execute for each build | |
7 | # | |
8 | ||
9 | $scriptdir = Split-Path -Parent $PSCommandPath | |
10 | $rootdir = $scriptdir + "\.." | |
11 | $whitepace = $rootdir + "\utils\check_whitespace" | |
12 | ||
13 | If ( Get-Command -Name perl -ErrorAction SilentlyContinue ) { | |
14 | &perl $whitepace -g | |
15 | if ($LASTEXITCODE -ne 0) { | |
16 | Exit $LASTEXITCODE | |
17 | } | |
18 | } else { | |
19 | Write-Output "Cannot execute check_whitespace - perl is missing" | |
20 | } |