build-scripts/update-copyright.sh
changeset 10739 1887bc9a89e2
parent 10738 c88f08b5a807
     1.1 --- a/build-scripts/update-copyright.sh	Sun Jan 01 18:36:35 2017 -0800
     1.2 +++ b/build-scripts/update-copyright.sh	Sun Jan 01 18:47:29 2017 -0800
     1.3 @@ -4,13 +4,5 @@
     1.4  | grep -v \.hg                             \
     1.5  | while read file;                            \
     1.6  do \
     1.7 -  LC_ALL=C sed -ie "s/\(.*Copyright.*\)[0-9]\{4\}\( *Sam Lantinga\)/\1`date +%Y`\2/" "$file"; \
     1.8 -  rm "${file}e"; \
     1.9 +  LC_ALL=C sed -b -i "s/\(.*Copyright.*\)[0-9]\{4\}\( *Sam Lantinga\)/\1`date +%Y`\2/" "$file"; \
    1.10  done
    1.11 -
    1.12 -for file in COPYING.txt VisualC-WinRT/SDL2-WinRT.nuspec VisualC-WinRT/SDL2main-WinRT-NonXAML.nuspec src/main/windows/version.rc visualtest/COPYING.txt
    1.13 -do if [ -f "$file" ]; then
    1.14 -     sed 's/$'"/`echo \\\r`/" $file > $file.new
    1.15 -     mv $file.new $file
    1.16 -   fi
    1.17 -done