Home Home > GIT Browse > vanilla
summaryrefslogtreecommitdiff
blob: f51f446707b82de9462d4a1c47949ecd5468a7d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0

set -e

# Check uniqueness of module names
check_same_name_modules()
{
	for m in $(sed 's:.*/::' modules.order | sort | uniq -d)
	do
		echo "warning: same module names found:" >&2
		sed -n "/\/$m/s:^:  :p" modules.order >&2
	done
}

check_same_name_modules