The branch master has been updated via b884ccda58cf9e72c56f76d5aeac1663860d8c0b (commit) from 9be200755a8b9d64b1f3d60b62e0e8909facc976 (commit)
- Log ----------------------------------------------------------------- commit b884ccda58cf9e72c56f76d5aeac1663860d8c0b Author: Rich Salz <rs...@openssl.org> Date: Sat Mar 3 16:20:49 2018 -0500 Script to generate AUTHORS file text ----------------------------------------------------------------------- Summary of changes: license/get-authors | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 license/get-authors diff --git a/license/get-authors b/license/get-authors new file mode 100755 index 0000000..32c6bd1 --- /dev/null +++ b/license/get-authors @@ -0,0 +1,35 @@ +#! /usr/bin/env python +"""get-authors + +Outputs text for an AUTHORS file. No parameters. +""" + +import mysql.connector +import datetime, os, re, subprocess, sys, string, random +import getopt + +dbconfig = { + 'user': 'licensereader', + 'password': open('ropass.txt').read().strip(), + 'database': 'license' + } +conn = mysql.connector.connect(**dbconfig) +cursor = conn.cursor() + +try: + opts, args = getopt.getopt(sys.argv[1:], "") +except: + print __doc__ + raise SystemExit + +for o,a in opts: + pass + +q = "SELECT name,email FROM users WHERE reply='y' OR reply='d' ORDER BY name" +cursor.execute(q) +for row in cursor: + name,email = row + if name == email: + print "<%s>" % (name,) + else: + print "%s <%s>" % (name, email) _____ openssl-commits mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits