File: CHECK_WHITESPACE.PS1

package info (click to toggle)
pmdk 1.13.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 28,944 kB
  • sloc: ansic: 126,815; sh: 21,543; cpp: 9,413; python: 5,893; makefile: 3,119; perl: 2,294; pascal: 1,442
file content (20 lines) | stat: -rw-r--r-- 546 bytes parent folder | download | duplicates (6)
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"
}