Convert some files back into DOS line endings after updating copyright
authorSam Lantinga
Sun, 01 Jan 2017 18:32:57 -0800
changeset 10736beca1404c586
parent 10735 754cac536474
child 10737 3406a0f8b041
Convert some files back into DOS line endings after updating copyright
build-scripts/update-copyright.sh
     1.1 --- a/build-scripts/update-copyright.sh	Sat Dec 31 18:11:19 2016 -0800
     1.2 +++ b/build-scripts/update-copyright.sh	Sun Jan 01 18:32:57 2017 -0800
     1.3 @@ -2,8 +2,15 @@
     1.4  
     1.5  find . -type f -exec grep -Il "Copyright" {} \;     \
     1.6  | grep -v \.hg                             \
     1.7 -| while read i;                            \
     1.8 +| while read $file;                            \
     1.9  do \
    1.10 -  LC_ALL=C sed -ie "s/\(.*Copyright.*\)[0-9]\{4\}\( *Sam Lantinga\)/\1`date +%Y`\2/" "$i"; \
    1.11 -  rm "${i}e"; \
    1.12 +  LC_ALL=C sed -ie "s/\(.*Copyright.*\)[0-9]\{4\}\( *Sam Lantinga\)/\1`date +%Y`\2/" "$file"; \
    1.13 +  rm "${file}e"; \
    1.14  done
    1.15 +
    1.16 +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.17 +do if [ -f "$file" ]; then
    1.18 +     sed 's/$'"/`echo \\\r`/" $file > $file.new
    1.19 +     mv $file.new $file
    1.20 +   fi
    1.21 +done