11from datetime
import date
16 for root, subdirs, files
in os.walk(rootdir):
20 sources.append(root +
'/' + f)
24HEADER =
"""# Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
25# for details. All rights reserved. Use of this source code is governed by a
26# BSD-style license that can be found in the LICENSE file.
28# DO NOT EDIT. This file is generated by update_sources.py in this directory.
30# This file contains all dart, css, and html sources for Observatory.
35 with open(
'observatory_sources.gni',
'w')
as target:
37 target.write(
'observatory_sources = [\n')
39 for rootdir
in [
'lib',
'web']:
40 sources.extend(
getDir(rootdir, target))
43 if (s[-9:] !=
'README.md'):
44 target.write(
' "' + s +
'",\n')
48if __name__ ==
"__main__":
def getDir(rootdir, target)