2021-01-07 02:54:04 -06:00
|
|
|
#! /bin/bash
|
|
|
|
|
2021-11-03 08:43:05 -05:00
|
|
|
find browser/src/ -name "*.js" -exec grep ': function' \{\} \; | sed -e 's/:.*//' -e 's/^[\t ]*//' -e 's/[\t ]*$//' | grep -v " " | sort | uniq | \
|
2021-01-07 02:54:04 -06:00
|
|
|
while read FUNC ; do
|
2021-11-03 08:43:05 -05:00
|
|
|
NUM=`git grep "\<$FUNC\>" browser/src/ | wc -l`
|
2021-01-07 02:54:04 -06:00
|
|
|
#echo "Trying $FUNC: $NUM"
|
|
|
|
if [ "$NUM" = "1" ] ; then
|
2021-11-03 08:43:05 -05:00
|
|
|
git --no-pager grep "\<$FUNC\>" browser/src/
|
2021-01-07 02:54:04 -06:00
|
|
|
fi
|
|
|
|
done
|