]>
jfr.im git - yt-dlp.git/blob - devscripts/make_contributing.py
7 return # This is unused in yt-dlp
9 parser
= optparse
.OptionParser(usage
='%prog INFILE OUTFILE')
10 options
, args
= parser
.parse_args()
12 parser
.error('Expected an input and an output filename')
14 infile
, outfile
= args
16 with open(infile
, encoding
='utf-8') as inf
:
20 r
'(?s)#\s*BUGS\s*[^\n]*\s*(.*?)#\s*COPYRIGHT', readme
).group(1)
22 r
'(?s)(#\s*DEVELOPER INSTRUCTIONS.*?)#\s*EMBEDDING yt-dlp', readme
).group(1)
24 out
= bug_text
+ dev_text
26 with open(outfile
, 'w', encoding
='utf-8') as outf
:
30 if __name__
== '__main__':