view help_diff.sh @ 7055:5a6616a088f2

new slave volume command done : "volume <x> <abs 0|1>" where : abs optionnal, 0 : relative, x > 0 increase else decrease 1 : static, x = volume, 0 to 100 for sofware plugin, remember to / 2.55 before commiting patch by "j.a.l" <j.a.l@free.fr>
author arpi
date Wed, 21 Aug 2002 20:44:29 +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