comparison help/help_diff.sh @ 26800:3ff3bd9bf0f9

Move the logic that decides if untranslated messages need to be added to help_mp.h into the helper script that generates those messages.
author diego
date Sun, 18 May 2008 23:33:46 +0000
parents 60c71a89cd76
children 8f3a1caf0e9a
comparison
equal deleted inserted replaced
26799:06fa17a9ee01 26800:3ff3bd9bf0f9
3 # This script walks through the master (stdin) help/message file, and 3 # This script walks through the master (stdin) help/message file, and
4 # prints (stdout) only those messages which are missing from the help 4 # prints (stdout) only those messages which are missing from the help
5 # file given as parameter ($1). 5 # file given as parameter ($1).
6 # 6 #
7 # Example: help_diff.sh help_mp-hu.h < help_mp-en.h > missing.h 7 # Example: help_diff.sh help_mp-hu.h < help_mp-en.h > missing.h
8
9 # Processing the master file, nothing to do.
10 test $1 = "help/help_mp-en.h" && exit 0
8 11
9 curr="" 12 curr=""
10 13
11 while read -r line; do 14 while read -r line; do
12 if echo "$line" | grep '^#define' > /dev/null 2>&1; then 15 if echo "$line" | grep '^#define' > /dev/null 2>&1; then