diff --git a/update_copyright_year.sh b/update_copyright_year.sh new file mode 100755 index 0000000000000000000000000000000000000000..5b6f18a36c9532afcad9d8a6ca48e7e306379ce9 --- /dev/null +++ b/update_copyright_year.sh @@ -0,0 +1,8 @@ +#!/bin/fish + +# Script to update the copyright year in header files + +set NEW_YEAR (date +"%Y") +set OLD_YEAR (math $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"