blob: e72560726178cbb3de92fa05764d96ee0150bf7b [file] [log] [blame]
# Copyright 2024 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""A script to prepend auto-gen headers to all BUILD.bazel files in this dir."""
import glob
for n in glob.glob('*/**/BUILD.bazel', recursive=True):
lines = ""
with open(n, 'r') as f:
lines = f.read()
with open(n, 'w') as f:
f.write('''# Copyright 2024 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# AUTO-GENERATED - DO NOT EDIT.
#
# Auto-generated by //third_party/golibs/update.sh.
''')
f.write(lines)