# HG changeset patch # User Roland Schatz # Date 1366118837 -7200 # Node ID 025448743177c5ca8ce09abce0bc3fe3b343c393 # Parent 79432a8f1ff8321883393ee25b76b17816c6f778 mx: generate services files from provider descriptions diff -r 79432a8f1ff8 -r 025448743177 mxtool/mx.py --- a/mxtool/mx.py Tue Apr 16 15:27:09 2013 +0200 +++ b/mxtool/mx.py Tue Apr 16 15:27:17 2013 +0200 @@ -1684,6 +1684,12 @@ with open(join(root, f), 'r') as infile: for line in infile: outfile.write(line) + elif relpath == join('META-INF', 'providers'): + for f in files: + with open(join(root, f), 'r') as infile: + for line in infile: + with open(join(services, line.strip()), 'a') as outfile: + outfile.write(f + '\n') else: for f in files: arcname = join(relpath, f).replace(os.sep, '/')