Edit

kc3-lang/SDL/build-scripts/update-copyright.sh

Branch :

  • Show log

    Commit

  • Author : Sam Lantinga
    Date : 2017-01-01 18:47:29
    Hash : 0badbdde
    Message : Run sed in binary mode so we don't have to worry about fixing line endings

  • build-scripts/update-copyright.sh
  • #!/bin/sh
    
    find . -type f -exec grep -Il "Copyright" {} \;     \
    | grep -v \.hg                             \
    | while read file;                            \
    do \
      LC_ALL=C sed -b -i "s/\(.*Copyright.*\)[0-9]\{4\}\( *Sam Lantinga\)/\1`date +%Y`\2/" "$file"; \
    done