summaryrefslogtreecommitdiff
path: root/build-aux/lint-unknown
blob: bc23a81f780358965533922ea35f64c46064a59f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# build-aux/lint-unknown - Lint checks for unknown files
#
# Copyright (C) 2024-2025  Luke T. Shumaker <lukeshu@lukeshu.com>
# SPDX-License-Identifier: AGPL-3.0-or-later

RED=$(tput setaf 1)
RESET=$(tput sgr0)

err() {
	printf "${RED}%s${RESET}: %s\n" "$1" "$2" >&2
	r=1
}

r=0
for filename in "$@"; do
	err "$filename" 'cannot lint unknown file type'
done
exit $r