Skip to content

Commit

Permalink
Fix copyright update
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwalisch committed Oct 26, 2018
1 parent 53e0662 commit a186dcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/update_version.sh
Expand Up @@ -23,7 +23,7 @@ old_major=$(echo $old_version | cut -f1 -d'.')
old_minor=$(echo $old_version | cut -f2 -d'.') old_minor=$(echo $old_version | cut -f2 -d'.')


new_year=$(date +'%Y') new_year=$(date +'%Y')
old_year=$(grep "Copyright (C)" src/gui/src/PrimeSieveGUI_const.hpp | cut -f5 -d' ') old_year=$(grep "Copyright (C)" src/gui/src/PrimeSieveGUI.hpp | cut -f5 -d' ')


echo "New version: $new_version" echo "New version: $new_version"
echo "Old version: $old_version" echo "Old version: $old_version"
Expand Down Expand Up @@ -67,7 +67,7 @@ done
# Update year # Update year
for i in $(echo COPYING \ for i in $(echo COPYING \
src/console/help.cpp \ src/console/help.cpp \
src/gui/src/PrimeSieveGUI_const.hpp) src/gui/src/PrimeSieveGUI.hpp)
do do
echo "Update year in $i" echo "Update year in $i"
sed "s/$old_year/$new_year/g" $i > $i.tmp sed "s/$old_year/$new_year/g" $i > $i.tmp
Expand Down

0 comments on commit a186dcd

Please sign in to comment.