aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorTim Hutt <timothy.hutt@codasip.com>2023-12-12 08:39:21 +0000
committerBill McSpadden <bill@riscv.org>2024-02-08 19:11:14 -0600
commit2eb3e3d265b863d41903d41ac8aa947da04c1a83 (patch)
tree685aa9f47629ffb24a2d0200a769954836f7a6b8 /.github/workflows
parent4de2bff12d967d91dd064e4a49e25ca4785f25e3 (diff)
downloadsail-riscv-2eb3e3d265b863d41903d41ac8aa947da04c1a83.zip
sail-riscv-2eb3e3d265b863d41903d41ac8aa947da04c1a83.tar.gz
sail-riscv-2eb3e3d265b863d41903d41ac8aa947da04c1a83.tar.bz2
Shorten copyright notice at the top of each file
This script was used to do the modification: ``` from pathlib import Path import re RE_LINE = r"/\*={50,150}\*/\n" RE_MIDDLE = r"/\*.*\*/\n" NEW_TEXT = """/*=======================================================================================*/ /* This Sail RISC-V architecture model, comprising all files and */ /* directories except where otherwise noted is subject the BSD */ /* two-clause license in the LICENSE file. */ /* */ /* SPDX-License-Identifier: BSD-2-Clause */ /*=======================================================================================*/ """ REPLACEMENT = re.compile(rf"^{RE_LINE}(?:{RE_MIDDLE}){{10,100}}{RE_LINE}") def main(): for file in Path("model").glob("**/*.sail"): text = file.read_text(encoding="utf-8") text = REPLACEMENT.sub(NEW_TEXT, text, 1) file.write_text(text, encoding="utf-8") if __name__ == "__main__": main() ```
Diffstat (limited to '.github/workflows')
0 files changed, 0 insertions, 0 deletions