Mercurial > mplayer.hg
annotate help/help_diff.sh @ 10645:558d0bc8354d
Windows hints as discussed on mplayer-cygwin
author | diego |
---|---|
date | Sun, 17 Aug 2003 18:10:42 +0000 |
parents | 7938ee85f355 |
children | 96170748b6a9 |
rev | line source |
---|---|
8538
6973e76d95b2
In this situation it was easier to fix yours. I applied these 3 points
arpi
parents:
7484
diff
changeset
|
1 #!/bin/sh |
6285
0b73c83bc47f
automatically adding untranslated messages to help_mp.h from english master file
arpi
parents:
diff
changeset
|
2 |
10636
7938ee85f355
shorter, sweeter, more portable, better calling syntax
diego
parents:
8732
diff
changeset
|
3 # This script compares a translated help file to the master file and prints |
7938ee85f355
shorter, sweeter, more portable, better calling syntax
diego
parents:
8732
diff
changeset
|
4 # out any missing messages. Needs the language code as parameter ($1). |
6285
0b73c83bc47f
automatically adding untranslated messages to help_mp.h from english master file
arpi
parents:
diff
changeset
|
5 # |
10636
7938ee85f355
shorter, sweeter, more portable, better calling syntax
diego
parents:
8732
diff
changeset
|
6 # Example: help_diff.sh hu |
6285
0b73c83bc47f
automatically adding untranslated messages to help_mp.h from english master file
arpi
parents:
diff
changeset
|
7 |
10636
7938ee85f355
shorter, sweeter, more portable, better calling syntax
diego
parents:
8732
diff
changeset
|
8 exec < help_mp-en.h |
6285
0b73c83bc47f
automatically adding untranslated messages to help_mp.h from english master file
arpi
parents:
diff
changeset
|
9 |
10636
7938ee85f355
shorter, sweeter, more portable, better calling syntax
diego
parents:
8732
diff
changeset
|
10 while read line; do |
7938ee85f355
shorter, sweeter, more portable, better calling syntax
diego
parents:
8732
diff
changeset
|
11 if echo "$line" | grep '^#define' > /dev/null 2>&1; then |
8732 | 12 curr=`echo "$line" | cut -d ' ' -f 2` |
10636
7938ee85f355
shorter, sweeter, more portable, better calling syntax
diego
parents:
8732
diff
changeset
|
13 if grep "^#define $curr" help_mp-$1.h > /dev/null 2>&1; then |
7938ee85f355
shorter, sweeter, more portable, better calling syntax
diego
parents:
8732
diff
changeset
|
14 true |
7938ee85f355
shorter, sweeter, more portable, better calling syntax
diego
parents:
8732
diff
changeset
|
15 else |
7938ee85f355
shorter, sweeter, more portable, better calling syntax
diego
parents:
8732
diff
changeset
|
16 echo "$line" |
8538
6973e76d95b2
In this situation it was easier to fix yours. I applied these 3 points
arpi
parents:
7484
diff
changeset
|
17 fi |
6973e76d95b2
In this situation it was easier to fix yours. I applied these 3 points
arpi
parents:
7484
diff
changeset
|
18 fi |
6286 | 19 done |