[contrib][haskell] add the Hkl.C.Engine
[hkl.git] / scripts / update_copyright_year
blob0f8789fab3a1280a5dcb43681207b55a9f8a5fb7
1 #!/bin/bash
3 CURRENT_YEAR=`date +%Y`
4 let LAST_YEAR=CURRENT_YEAR-1
5 MSG="upgrading copyright year from $LAST_YEAR to $CURRENT_YEAR"
6 echo $MSG
7 rgrep -w -l -I "Copyright .*-$LAST_YEAR" .. | xargs sed -i "s,-$LAST_YEAR,-$CURRENT_YEAR,g"
8 echo $MSG > ../.git/GITGUI_BCK