3 # This script walks through the master (stdin) help/message file, and
4 # prints (stdout) only those messages which are missing from the help
5 # file given as parameter ($1).
7 # Example: help_diff.sh help_mp-hu.h < help_mp-en.h > missing.h
11 while read -r line
; do
12 if echo "$line" |
grep '^#define' > /dev
/null
2>&1; then
13 curr
=`printf "%s\n" "$line" | cut -d ' ' -f 2`
14 if grep "^#define $curr[ ]" $1 > /dev
/null
2>&1; then
18 if [ -z "$line" ]; then
23 if [ -n "$curr" ]; then