Home | History | Annotate | Download | only in gn
      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 
      8 import os
      9 import subprocess
     10 import sys
     11 
     12 src = open(sys.argv[1], 'r')
     13 dst = open(sys.argv[2], 'wb')
     14 dst.write('R"(')
     15 for line in src.readlines():
     16     if not line.startswith("#"):
     17         dst.write(line)
     18 dst.write(')"\n')
     19 src.close()
     20 dst.close()
     21