diff --git a/lib/generate_contributions.py b/lib/generate_contributions.py index 89d4305455..791907489c 100755 --- a/lib/generate_contributions.py +++ b/lib/generate_contributions.py @@ -10,13 +10,13 @@ author Angus Leeming Full author contact details are available in file CREDITS This script both stores and manipulates the raw data needed to -create CREDITS, credits.php and blanket-permission.php +create CREDITS, credits.inc and blanket-permission.inc Usage: $ python generate_contributions.py \ CREDITS \ - credits.php \ - blanket-permission.php + credits.inc \ + blanket-permission.inc where the arguments are the names of the generated files. ''' @@ -65,7 +65,7 @@ class contributer: def as_php_credits(self, wrapper): return ''' -contrib("%s", +$output=$output.credits_contrib("%s", "%s", "%s"); ''' % ( xml_escape(self.name), @@ -75,7 +75,7 @@ contrib("%s", def as_php_blanket(self): return ''' -contrib("%s", +$output=$output.blanket_contrib("%s", "%s", "%s", "%s", @@ -133,69 +133,59 @@ just drop some e-mail to lyx@lyx.org. Thanks. return "".join(results) -def header(title, file): +def header(): return ''' -''' % ( title, file ) +''' def footer(): return ''' - ''' def as_php_credits(contributers, file): results = [] - results.append(header("CREDITS", file)) + results.append(header()) results.append(''' - -function contrib($name, $email, $msg) { -echo " +function credits_contrib($name, $email, $msg) { + +$output=$output. "
+$output=$output."
If your name doesn't appear here although you've done something for LyX, or your entry is wrong or incomplete, just drop an e-mail to the - lyx-devel + lyx-devel mailing list. Thanks.
-- The following people hereby grant permission to licence their +$output=$output."
+ The following people hereby grant permission to license their contributions to LyX under the - - Gnu General Public Licence, version 2 or later. + + Gnu General Public License, version 2 or later.
-- The following people hereby grant permission to licence their + The following people hereby grant permission to license their contributions to LyX under the - - Artistic Licence. + + Artistic License.
-