Better propagation of suppressed-ness to function types
[platform/upstream/libabigail.git] / update-copyright.sh
1 #!/bin/sh
2
3 oldyear=2018
4 newyear=2019
5
6 for dir in src include tools tests; do
7     for ext in cc h; do
8         find $dir -maxdepth 1 -name *.$ext \
9              -exec sed -i -r \
10              "s/(Copyright \(C\) .*?-)$oldyear Red Hat, Inc/\1$newyear Red Hat, Inc/" \
11              {} \; \
12              -exec sed -i -r \
13              "s/(Copyright \(C\)) ($oldyear) (Red Hat, Inc)/\1 $oldyear-$newyear \3/" \
14              {} \;
15     done
16 done