create CREDITS, credits.inc and blanket-permission.inc
Usage:
+
$ python generate_contributions.py \
CREDITS \
credits.inc \
blanket-permission.inc
-where the arguments are the names of the generated files.
+where the arguments are the pathnames of the generated files.
'''
import codecs, sys, textwrap
def usage(prog_name):
- return "Usage: %s <CREDITS> <credits.inc> <blanket-permission.inc>" % prog_name
+ return '''
+Usage:
+
+$ python generate_contributions.py \\
+ CREDITS \\
+ credits.inc \\
+ blanket-permission.inc
+
+where the arguments are the pathnames of the generated files.
+'''
def collate_incomplete(contributers):
} else
$output=$output. "<dt><b>${name}</b>";
-$msg = ereg_replace("\\n *", "\\n ", ltrim($msg));
+$msg = preg_replace("/\\n */", "\\n ", ltrim($msg));
$output=$output. "
</dt>
"28 January 2011",
u"fix-cm module"),
+ contributer(u"Gioele Barabucci",
+ "gioele () svario ! it",
+ "GPL",
+ "Contribution license",
+ "m=136933235620262",
+ "23 May 2013",
+ u"ACM-SIGS layouts"),
+
contributer(u"Özgür Uğraş Baran",
"ugras.baran () gmail ! com",
"GPL",
"",
"",
"",
- u"Original name that is now two character shorter"),
+ u"Original name that is now two characters shorter"),
contributer(u"KDE Artists",
"http://artist.kde.org/",