build-scripts/update-copyright.sh
changeset 10738 c88f08b5a807
parent 10736 beca1404c586
child 10739 1887bc9a89e2
equal deleted inserted replaced
10737:3406a0f8b041 10738:c88f08b5a807
     1 #!/bin/sh
     1 #!/bin/sh
     2 
     2 
     3 find . -type f -exec grep -Il "Copyright" {} \;     \
     3 find . -type f -exec grep -Il "Copyright" {} \;     \
     4 | grep -v \.hg                             \
     4 | grep -v \.hg                             \
     5 | while read $file;                            \
     5 | while read file;                            \
     6 do \
     6 do \
     7   LC_ALL=C sed -ie "s/\(.*Copyright.*\)[0-9]\{4\}\( *Sam Lantinga\)/\1`date +%Y`\2/" "$file"; \
     7   LC_ALL=C sed -ie "s/\(.*Copyright.*\)[0-9]\{4\}\( *Sam Lantinga\)/\1`date +%Y`\2/" "$file"; \
     8   rm "${file}e"; \
     8   rm "${file}e"; \
     9 done
     9 done
    10 
    10