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

Indexes created Thu Nov 07 10:32:03 CST 2024