From: Carl Hetherington Date: Tue, 28 Jan 2020 11:49:08 +0000 (+0100) Subject: Add new script. X-Git-Tag: v2.15.43~18 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=c2cc3e03b3b5973b64271cd8dcf4e7843e8b6d1e Add new script. --- diff --git a/hacks/metadata_from_problem b/hacks/metadata_from_problem new file mode 100755 index 000000000..a739d5fdd --- /dev/null +++ b/hacks/metadata_from_problem @@ -0,0 +1,14 @@ +#!/usr/bin/python3 + +import sys + +on = False +for line in sys.stdin: + line = line.strip() + if line == '' or on: + print(line) + on = True + if line == '': + on = False + +