• 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 sys
9
10def copy(src, dst):
11    for line in src.readlines():
12        if not line.startswith("#"):
13            dst.write(line)
14    src.close()
15
16dst = open(sys.argv[3], 'wb')
17dst.write("// *********************************************************\n")
18dst.write("// ***  AUTOGENERATED BY create_sksl_fp.py, DO NOT EDIT  ***\n")
19dst.write("// *********************************************************\n\n\n")
20copy(open(sys.argv[1], 'r'), dst)
21copy(open(sys.argv[2], 'r'), dst)
22dst.close()
23