2ad6f1d24b
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libmatroska@1 a6f86f6d-0131-4f8e-9e7b-e335508773d5
19 lines
392 B
Bash
19 lines
392 B
Bash
#!/bin/sh
|
|
|
|
# A small script that looks for duplicate EBML IDs in all of libmatroska's
|
|
# source files.
|
|
|
|
echo 'Duplicate IDs:'
|
|
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}:
|
|
grep -i $id ../../src/*cpp
|
|
done )
|
|
|