11 lines
396 B
Bash
11 lines
396 B
Bash
|
#! /bin/bash
|
||
|
|
||
|
find loleaflet/src/ -name "*.js" -exec grep ': function' \{\} \; | sed -e 's/:.*//' -e 's/^[\t ]*//' -e 's/[\t ]*$//' | grep -v " " | sort | uniq | \
|
||
|
while read FUNC ; do
|
||
|
NUM=`git grep "\<$FUNC\>" loleaflet/src/ | wc -l`
|
||
|
#echo "Trying $FUNC: $NUM"
|
||
|
if [ "$NUM" = "1" ] ; then
|
||
|
git --no-pager grep "\<$FUNC\>" loleaflet/src/
|
||
|
fi
|
||
|
done
|