From: Angus Leeming Date: Fri, 8 Apr 2005 10:32:36 +0000 (+0000) Subject: Ouput warning of missing info X-Git-Tag: 1.6.10~14419 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f7d7a58f78878749f05d5ddedd0e03b054d9b983;p=lyx.git Ouput warning of missing info git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9790 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/generate_contributions.py b/lib/generate_contributions.py index 952c0aaa25..c802d64f72 100755 --- a/lib/generate_contributions.py +++ b/lib/generate_contributions.py @@ -97,6 +97,42 @@ def usage(prog_name): return "Usage: %s ''' -def as_txt_credits(contributers): - results = [] - - for contributer in contributers: - if len(contributer.credit) != 0: - results.append(contributer.as_txt_credits()) - - results.append(''' - -If your name doesn't appear here although you've done -something for LyX, or your entry is wrong or incomplete, -just drop some e-mail to lyx@lyx.org. Thanks. -''') - - return "".join(results) - - def as_php_credits(contributers, file): results = [] @@ -274,10 +293,13 @@ def main(argv, contributers): php_credits = open(argv[2], "w") php_credits.write(php_credits_data) - php_blanket_data = unicode(as_php_blanket(contributers, argv[3])).encode("utf-8") + php_blanket_data = unicode(as_php_blanket(contributers, argv[3])).encode("utf-8") php_blanket = open(argv[3], "w") php_blanket.write(php_blanket_data) + warning_data = unicode(collate_incomplete(contributers) + '\n').encode("utf-8") + sys.stderr.write(warning_data) + # Store the raw data. contributers = [