1 Star 0 Fork 28

王佳栋/third_party_libabigail_5

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
update-copyright.sh 424 Bytes
一键复制 编辑 原始数据 按行查看 历史
Dodji Seketeli 提交于 2022-06-21 18:48 +08:00 . Update year in copyright notice
#!/bin/sh
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
oldyear=2021
newyear=2022
for dir in src include tools tests; do
for ext in cc h; do
find $dir -maxdepth 1 -name *.$ext \
-exec sed -i -r \
"s/(Copyright \(C\) .*?-)$oldyear (.*?\.)/\1$newyear \2/" \
{} \; \
-exec sed -i -r \
"s/(Copyright \(C\)) ($oldyear) (.*?\.)/\1 $oldyear-$newyear \3/" \
{} \;
done
done
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wang-jiadong11/third_party_libabigail_5.git
git@gitee.com:wang-jiadong11/third_party_libabigail_5.git
wang-jiadong11
third_party_libabigail_5
third_party_libabigail_5
master

搜索帮助