diff --git a/Tools/copyright_update.sh b/Tools/copyright_update.sh new file mode 100755 index 0000000000000000000000000000000000000000..49b9f3b9ea63a6b52067346fffd043e125f852f7 --- /dev/null +++ b/Tools/copyright_update.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +year=$1 +filepattern="\.java$\|\.g4$\|\.ttcn$\|\.asn1$\|\.tpd$\|\.txt$" + +if [ $# -eq 0 ]; then + echo "Usage: copyrigth_update YYYY" + exit 1 +fi + +find . | grep -v ".git" | grep ${filepattern} | xargs -n 1 sed -i -e "s/Copyright (c) 2000-20.. Ericsson Telecom AB/Copyright (c) 2000-${year} Ericsson Telecom AB/"