aboutsummaryrefslogtreecommitdiffstats
path: root/check/find-duplicates
blob: 2517fb6a4859fd804adc786c71a53a13a0ed91c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/sh
set -e

dups="$(sed 's/\\$//' < icons.mk | sed '/^\s*\(#.*\|\)$/d' | sed 1d | tr -d '\t ' | sort | uniq -d)"

if test -n "$dups"; then
	printf 'The following files have been listed in icons.mk multiple times:\n%s\n' "$dups" >&2
	exit 1
fi