matroska/tools/check_ids

19 lines
362 B
Plaintext
Raw Permalink Normal View History

#!/bin/sh
# A small script that looks for duplicate EBML IDs in all of libmatroska's
# source files.
echo 'Duplicate IDs:'
2014-12-21 10:31:45 +01:00
grep -h '^EbmlId.*_TheId' src/*cpp | \
sed -e 's/TheId/TheId /' | \
awk '{ print $3 }' | \
sed -e 's/(//' -e 's/,//' | \
sort | \
uniq -d | \
( while read id ; do
echo ''
echo ${id}:
2014-12-21 10:31:45 +01:00
grep -i $id src/*cpp
done )