diff --git a/update_copyright_year.sh b/update_copyright_year.sh new file mode 100755 index 0000000000000000000000000000000000000000..edf97d1f39ee21fada23df6ef224f1ba11901917 --- /dev/null +++ b/update_copyright_year.sh @@ -0,0 +1,7 @@ +#!/bin/fish + +# Script to update the copyright year in header files + +set NEW_YEAR (date +"%Y") +set OLD_YEAR (math $NEW_YEAR - 1) +sed -i "s/Copyright 2016-$OLD_YEAR M/Copyright 2016-$NEW_YEAR M/g" bin/silkaj silkaj/*.py tests/*.py