missing-mnemonics.sh 353 Bytes
Newer Older
1 2 3 4 5
#!/bin/sh
# Author:	Nick Treleaven
# License:	GPL V2 or later
# Usage:	check-mnemonics.sh [file list]

Enrico Tröger's avatar
Enrico Tröger committed
6 7 8

if [ $# -ge 1 ]; then
	FILES=$@
9
else
Enrico Tröger's avatar
Enrico Tröger committed
10
	FILES='src/*.c plugins/*.c'
11 12
fi

Enrico Tröger's avatar
Enrico Tröger committed
13

14
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