55a40710ab
Add support for passing asterisk wildcards to missing-mnemonics.sh. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2928 ea778897-0a13-0410-b9d1-a72fbfd435f5
15 lines
353 B
Bash
Executable File
15 lines
353 B
Bash
Executable File
#!/bin/sh
|
|
# Author: Nick Treleaven
|
|
# License: GPL V2 or later
|
|
# Usage: check-mnemonics.sh [file list]
|
|
|
|
|
|
if [ $# -ge 1 ]; then
|
|
FILES=$@
|
|
else
|
|
FILES='src/*.c plugins/*.c'
|
|
fi
|
|
|
|
|
|
fgrep -n 'menu_item_new' $FILES |egrep -v '".*_[a-zA-Z0-9]' |fgrep -v from_stock |fgrep -v '_("No custom commands defined.")' |fgrep -vi '_("invisible")' |egrep '_\(".+' --color
|