From f7d7a58f78878749f05d5ddedd0e03b054d9b983 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Fri, 8 Apr 2005 10:32:36 +0000 Subject: [PATCH] Ouput warning of missing info git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9790 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/generate_contributions.py | 58 ++++++++++++++++++++++++----------- 1 file changed, 40 insertions(+), 18 deletions(-) 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 = [ -- 2.39.5