]> jfr.im git - yt-dlp.git/blob - devscripts/make_contributing.py
Merge branch 'tvnow' of https://github.com/TinyToweringTree/youtube-dl into TinyTower...
[yt-dlp.git] / devscripts / make_contributing.py
1 #!/usr/bin/env python
2 from __future__ import unicode_literals
3
4 # import io
5 import optparse
6 # import re
7
8
9 def main():
10 parser = optparse.OptionParser(usage='%prog INFILE OUTFILE')
11 options, args = parser.parse_args()
12 if len(args) != 2:
13 parser.error('Expected an input and an output filename')
14
15
16 """ infile, outfile = args
17
18 with io.open(infile, encoding='utf-8') as inf:
19 readme = inf.read()
20
21 bug_text = re.search( """
22 # r'(?s)#\s*BUGS\s*[^\n]*\s*(.*?)#\s*COPYRIGHT', readme).group(1)
23 # dev_text = re.search(
24 # r'(?s)(#\s*DEVELOPER INSTRUCTIONS.*?)#\s*EMBEDDING youtube-dlc',
25 """ readme).group(1)
26
27 out = bug_text + dev_text
28
29 with io.open(outfile, 'w', encoding='utf-8') as outf:
30 outf.write(out) """
31
32 if __name__ == '__main__':
33 main()