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