blob: 9a7f9398b8cb0c550ca28a20ad4192a62c6e35e6 [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')
13dst = open(sys.argv[2], 'w')
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()