Mercurial > mplayer.hg
comparison help/help_diff.sh @ 7484:32c7ca9359b1
help*.h files moved to help/ subdir
author | arpi |
---|---|
date | Sun, 22 Sep 2002 16:31:21 +0000 |
parents | help_diff.sh@b54d7fd6471a |
children | 6973e76d95b2 |
comparison
equal
deleted
inserted
replaced
7483:44198b2f42db | 7484:32c7ca9359b1 |
---|---|
1 #! /bin/sh | |
2 | |
3 # This script walks through the master (stdin) help/message file, and | |
4 # prints (stdout) only those messages which are missing from the help | |
5 # file given as parameter ($1). | |
6 # | |
7 # Example: help_diff.sh help_mp-hu.h < help_mp-en.h > missing.h | |
8 | |
9 curr="x" | |
10 | |
11 while read -r line ; do | |
12 | |
13 if ( echo $line | cut -d ' ' -f 1 | grep '^#define' > /dev/null ); then | |
14 curr=`echo $line | cut -d ' ' -f 2` | |
15 if ( grep " $curr " $1 > /dev/null ); then | |
16 curr="x" | |
17 fi | |
18 else | |
19 if test x"$line" = x; then | |
20 curr="x" | |
21 fi | |
22 fi | |
23 | |
24 if test $curr != "x" ; then | |
25 echo "$line" | |
26 fi | |
27 | |
28 done | |
29 |