2017-11-10 20:34:03 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
#
|
|
|
|
# Copyright 2017 Google Inc.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
import os
|
|
|
|
import subprocess
|
|
|
|
import sys
|
|
|
|
|
|
|
|
src = open(sys.argv[1], 'r')
|
2018-02-09 14:49:30 +00:00
|
|
|
dst = open(sys.argv[2], 'wb')
|
2017-11-16 18:52:16 +00:00
|
|
|
dst.write('R"(')
|
2017-11-10 20:34:03 +00:00
|
|
|
for line in src.readlines():
|
|
|
|
if not line.startswith("#"):
|
|
|
|
dst.write(line)
|
2017-11-16 18:52:16 +00:00
|
|
|
dst.write(')"\n')
|
2017-11-10 20:34:03 +00:00
|
|
|
src.close()
|
|
|
|
dst.close()
|