summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-07-25 15:18:39 +0100
committerTom Hacohen <tom@stosb.com>2014-07-25 15:18:39 +0100
commita77b9a0f362af410cd41b71b08f49900b9c53df0 (patch)
treecd56a5c628df24e061d5122e4aa7677d4e33986f
parentce9648777e8831fedeb1ac9d65de32c4ea02ec35 (diff)
Add count_api_dups an API duplicate finder.
This tool recursively searches through a dir with eolian files and prints out a list of duplicate functions and properties from the eolian files, and the number of duplicates found.
-rwxr-xr-xcount_api_dups.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/count_api_dups.sh b/count_api_dups.sh
new file mode 100755
index 0000000..09caac4
--- /dev/null
+++ b/count_api_dups.sh
@@ -0,0 +1,8 @@
1#!/bin/sh
2
3if [ "$#" -lt 2 ]; then
4 echo "Usage: $0 <search dir> <include dir>"
5 exit 1
6fi
7
8find $1 -exec $PWD/prop_func_dump -I $2 {} \; | sort | uniq -c -d