annotate help/help_diff.sh @ 8612:a61d1b326beb

It shows not just the progressbar, but progressbar /and/ percentage for osd levels 2 and 3, and inaddition it adds a new osd level (3) which also shows total time. patch by seru <seru@gmx.net>
author arpi
date Sat, 28 Dec 2002 14:17:38 +0000
parents 6973e76d95b2
children 450015fb59e6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
0b73c83bc47f automatically adding untranslated messages to help_mp.h from english master file
arpi
parents:
diff changeset
3 # This script walks through the master (stdin) help/message file, and
0b73c83bc47f automatically adding untranslated messages to help_mp.h from english master file
arpi
parents:
diff changeset
4 # prints (stdout) only those messages which are missing from the help
0b73c83bc47f automatically adding untranslated messages to help_mp.h from english master file
arpi
parents:
diff changeset
5 # file given as parameter ($1).
0b73c83bc47f automatically adding untranslated messages to help_mp.h from english master file
arpi
parents:
diff changeset
6 #
6288
7336fdaff773 2 small fixes
arpi
parents: 6286
diff changeset
7 # Example: help_diff.sh help_mp-hu.h < help_mp-en.h > missing.h
6285
0b73c83bc47f automatically adding untranslated messages to help_mp.h from english master file
arpi
parents:
diff changeset
8
8538
6973e76d95b2 In this situation it was easier to fix yours. I applied these 3 points
arpi
parents: 7484
diff changeset
9 curr=""
6285
0b73c83bc47f automatically adding untranslated messages to help_mp.h from english master file
arpi
parents:
diff changeset
10
8538
6973e76d95b2 In this situation it was easier to fix yours. I applied these 3 points
arpi
parents: 7484
diff changeset
11 while read -r line; do
6973e76d95b2 In this situation it was easier to fix yours. I applied these 3 points
arpi
parents: 7484
diff changeset
12 if echo -E "$line" | grep -q '^#define'; then
6973e76d95b2 In this situation it was easier to fix yours. I applied these 3 points
arpi
parents: 7484
diff changeset
13 curr=`echo -E "$line" | cut -d ' ' -f 2`
6973e76d95b2 In this situation it was easier to fix yours. I applied these 3 points
arpi
parents: 7484
diff changeset
14 if grep -q "^#define $curr " $1; then
6973e76d95b2 In this situation it was easier to fix yours. I applied these 3 points
arpi
parents: 7484
diff changeset
15 curr=""
6973e76d95b2 In this situation it was easier to fix yours. I applied these 3 points
arpi
parents: 7484
diff changeset
16 fi
6973e76d95b2 In this situation it was easier to fix yours. I applied these 3 points
arpi
parents: 7484
diff changeset
17 else
6973e76d95b2 In this situation it was easier to fix yours. I applied these 3 points
arpi
parents: 7484
diff changeset
18 if [ -z "$line" ]; then
6973e76d95b2 In this situation it was easier to fix yours. I applied these 3 points
arpi
parents: 7484
diff changeset
19 curr=""
6973e76d95b2 In this situation it was easier to fix yours. I applied these 3 points
arpi
parents: 7484
diff changeset
20 fi
6973e76d95b2 In this situation it was easier to fix yours. I applied these 3 points
arpi
parents: 7484
diff changeset
21 fi
6285
0b73c83bc47f automatically adding untranslated messages to help_mp.h from english master file
arpi
parents:
diff changeset
22
8538
6973e76d95b2 In this situation it was easier to fix yours. I applied these 3 points
arpi
parents: 7484
diff changeset
23 if [ -n "$curr" ]; then
6973e76d95b2 In this situation it was easier to fix yours. I applied these 3 points
arpi
parents: 7484
diff changeset
24 echo -E "$line"
6973e76d95b2 In this situation it was easier to fix yours. I applied these 3 points
arpi
parents: 7484
diff changeset
25 fi
6286
arpi
parents: 6285
diff changeset
26 done
6356
b54d7fd6471a This script has no bash specific stuff, it's all standard bourne shell, so execute with sh.
atmos4
parents: 6288
diff changeset
27
8538
6973e76d95b2 In this situation it was easier to fix yours. I applied these 3 points
arpi
parents: 7484
diff changeset
28