aboutsummaryrefslogtreecommitdiffstats
path: root/check/find-duplicates
diff options
context:
space:
mode:
Diffstat (limited to 'check/find-duplicates')
-rwxr-xr-xcheck/find-duplicates9
1 files changed, 9 insertions, 0 deletions
diff --git a/check/find-duplicates b/check/find-duplicates
new file mode 100755
index 0000000..2517fb6
--- /dev/null
+++ b/check/find-duplicates
@@ -0,0 +1,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