• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/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], 'wb')
14dst.write('R"(')
15for line in src.readlines():
16    if not line.startswith("#"):
17        dst.write(line)
18dst.write(')"\n')
19src.close()
20dst.close()
21