Skip to content

Latest commit

 

History

History
executable file
·
16 lines (14 loc) · 545 Bytes

update-copyright.sh

File metadata and controls

executable file
·
16 lines (14 loc) · 545 Bytes
 
1
2
3
4
#!/bin/sh
find . -type f -exec grep -Il "Copyright" {} \; \
| grep -v \.hg \
Jan 2, 2017
Jan 2, 2017
5
| while read file; \
Jan 2, 2017
Jan 2, 2017
7
8
9
10
11
12
13
14
15
LC_ALL=C sed -ie "s/\(.*Copyright.*\)[0-9]\{4\}\( *Sam Lantinga\)/\1`date +%Y`\2/" "$file"; \
rm "${file}e"; \
done
for file in COPYING.txt VisualC-WinRT/SDL2-WinRT.nuspec VisualC-WinRT/SDL2main-WinRT-NonXAML.nuspec src/main/windows/version.rc visualtest/COPYING.txt
do if [ -f "$file" ]; then
sed 's/$'"/`echo \\\r`/" $file > $file.new
mv $file.new $file
fi