blob: 302a8781f0cf1786ad5ea35521eb9497e0c6695c [file] [log] [blame]
Ethan Nicholasaae47c82017-11-10 15:34:03 -05001#!/usr/bin/env python
2#
3# Copyright 2017 Google Inc.
4#
5# Use of this source code is governed by a BSD-style license that can be
6# found in the LICENSE file.
7
8import os
9import subprocess
10import sys
11
12src = open(sys.argv[1], 'r')
Brian Osmancfe848c2018-02-09 09:49:30 -050013dst = open(sys.argv[2], 'wb')
Ethan Nicholas3bc00fe2017-11-16 13:52:16 -050014dst.write('R"(')
Ethan Nicholasaae47c82017-11-10 15:34:03 -050015for line in src.readlines():
16 if not line.startswith("#"):
17 dst.write(line)
Ethan Nicholas3bc00fe2017-11-16 13:52:16 -050018dst.write(')"\n')
Ethan Nicholasaae47c82017-11-10 15:34:03 -050019src.close()
20dst.close()