• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3
4oldyear=2021
5newyear=2022
6
7for dir in src include tools tests; do
8    for ext in cc h; do
9	find $dir -maxdepth 1 -name *.$ext \
10	    -exec sed -i -r \
11	     "s/(Copyright \(C\) .*?-)$oldyear (.*?\.)/\1$newyear \2/" \
12	     {} \; \
13	     -exec sed -i -r \
14	     "s/(Copyright \(C\)) ($oldyear) (.*?\.)/\1 $oldyear-$newyear \3/" \
15	     {} \;
16    done
17done
18