diff --git a/update_copyright_year.sh b/update_copyright_year.sh new file mode 100755 index 0000000000000000000000000000000000000000..2e65b9f527683e78d2e051e02caa43210e885948 --- /dev/null +++ b/update_copyright_year.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +# Script to update the copyright year in header files + +NEW_YEAR=`date +"%Y"` +OLD_YEAR=`expr $NEW_YEAR - 1` +find duniterpy tests examples -type f -name "*.py" | \ +xargs sed -i "s/Copyright 2014-$OLD_YEAR V/Copyright 2014-$NEW_YEAR V/g"