[Mplayer-cvslog] CVS: main help_diff.sh,NONE,1.1 configure,1.490,1.491

Arpi of Ize arpi at mplayerhq.hu
Mon Jun 3 19:48:22 CEST 2002


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv27418

Modified Files:
	configure 
Added Files:
	help_diff.sh 
Log Message:
automatically adding untranslated messages to help_mp.h from english master file


--- NEW FILE ---
#! /bin/bash

# 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_mp-en.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 < help_mp-en.h

Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.490
retrieving revision 1.491
diff -u -r1.490 -r1.491
--- configure	3 Jun 2002 14:18:13 -0000	1.490
+++ configure	3 Jun 2002 17:48:19 -0000	1.491
@@ -4340,6 +4340,9 @@
 #include "$_mp_help"
 EOF
 
+echo "Adding untranslated messages to help_mp.h"
+./help_diff.sh $_mp_help <help_mp-en.h >> help_mp.h
+
 #############################################################################
 
 cat << EOF




More information about the MPlayer-cvslog mailing list