view help_diff.sh @ 7099:0b70f3dc34eb

Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some small additions. * Replaced <UL> with <OL> where it made sense (to me :-)). * Moved "Developer Cries" into the appendix (as Appendix F) with s/Flame Wars/Developer Cries/ and s/In medias res/Developer Cries/. * Renamed "Appendix X" to "Appendix E". * Put a "Hint" inside <BLOCKQUOTE>. * Converted 3-pass encoding and mga_vid installation instructions to lists. * Converted options tables (video eq, SDL, fbdev, VESA, DXR3, TV input, DivX4Linux, AAlib) to <DL> lists. * The "sections" for MPsub and INSTALLING OSD are numbered and displayed in the TOC now. * Changed the text inside some <H4> tags.
author diego
date Tue, 27 Aug 2002 18:06:07 +0000
parents b54d7fd6471a
children
line wrap: on
line source

#! /bin/sh

# This script walks through the master (stdin) help/message file, and
# prints (stdout) only those messages which are missing from the help
# file given as parameter ($1).
#
# Example: help_diff.sh help_mp-hu.h < help_mp-en.h > missing.h

curr="x"

while read -r line ; do

if ( echo $line | cut -d ' ' -f 1 | grep '^#define' > /dev/null ); then
    curr=`echo $line | cut -d ' ' -f 2`
    if ( grep " $curr " $1 > /dev/null ); then
	curr="x"
    fi
else
    if test x"$line" = x; then
	curr="x"
    fi
fi

if test $curr != "x" ; then
    echo "$line"
fi

done