2015-06-21 17:33:46 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
find . -type f -exec grep -Il "Copyright" {} \; \
|
|
|
|
| grep -v \.hg \
|
2017-01-02 03:36:35 +01:00
|
|
|
| while read file; \
|
2015-06-21 17:33:46 +02:00
|
|
|
do \
|
2017-01-02 03:32:57 +01:00
|
|
|
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
|
2015-06-21 17:33:46 +02:00
|
|
|
done
|