diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-04-12 10:56:17 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-04-12 10:56:17 +0000 |
commit | 7573c29480850d715e2f06cae70f252573098123 (patch) | |
tree | a5a2f498ad3a19806957e1d7e01f913c1650b33d /help/help_create.sh | |
parent | 86ea8d4f4abf23672516fa0ca3378aa19c44bf2c (diff) | |
download | mpv-7573c29480850d715e2f06cae70f252573098123.tar.bz2 mpv-7573c29480850d715e2f06cae70f252573098123.tar.xz |
the great MPlayer tab removal: part I
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31032 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'help/help_create.sh')
-rwxr-xr-x | help/help_create.sh | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/help/help_create.sh b/help/help_create.sh index 87a0ade4ab..cd96dbc281 100755 --- a/help/help_create.sh +++ b/help/help_create.sh @@ -19,20 +19,20 @@ missing_messages(){ curr="" while read -r line; do - if echo "$line" | grep -q '^#define' ; then - curr=`printf "%s\n" "$line" | cut -d ' ' -f 2` - if grep -q "^#define $curr[ ]" "$TRANSLATION" ; then - curr="" - fi - else - if [ -z "$line" ]; then - curr="" - fi - fi - - if [ -n "$curr" ]; then - printf "%s\n" "$line" - fi + if echo "$line" | grep -q '^#define' ; then + curr=`printf "%s\n" "$line" | cut -d ' ' -f 2` + if grep -q "^#define $curr[ ]" "$TRANSLATION" ; then + curr="" + fi + else + if [ -z "$line" ]; then + curr="" + fi + fi + + if [ -n "$curr" ]; then + printf "%s\n" "$line" + fi done } |