comparison help/help_create.sh @ 30990:0ad2da052b2e

the great MPlayer tab removal: part I
author diego
date Mon, 12 Apr 2010 10:56:17 +0000
parents eb42079ed5f7
children 7e7c541566ad
comparison
equal deleted inserted replaced
30989:686241d65b86 30990:0ad2da052b2e
17 17
18 missing_messages(){ 18 missing_messages(){
19 curr="" 19 curr=""
20 20
21 while read -r line; do 21 while read -r line; do
22 if echo "$line" | grep -q '^#define' ; then 22 if echo "$line" | grep -q '^#define' ; then
23 curr=`printf "%s\n" "$line" | cut -d ' ' -f 2` 23 curr=`printf "%s\n" "$line" | cut -d ' ' -f 2`
24 if grep -q "^#define $curr[ ]" "$TRANSLATION" ; then 24 if grep -q "^#define $curr[ ]" "$TRANSLATION" ; then
25 curr="" 25 curr=""
26 fi 26 fi
27 else 27 else
28 if [ -z "$line" ]; then 28 if [ -z "$line" ]; then
29 curr="" 29 curr=""
30 fi 30 fi
31 fi 31 fi
32 32
33 if [ -n "$curr" ]; then 33 if [ -n "$curr" ]; then
34 printf "%s\n" "$line" 34 printf "%s\n" "$line"
35 fi 35 fi
36 done 36 done
37 } 37 }
38 38
39 cat <<EOF > "$TARGET" 39 cat <<EOF > "$TARGET"
40 /* WARNING! This is a generated file, do NOT edit. 40 /* WARNING! This is a generated file, do NOT edit.