mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Run sed in binary mode so we don't have to worry about fixing line endings
This commit is contained in:
parent
9e6d729e2d
commit
0badbddef9
@ -4,13 +4,5 @@ find . -type f -exec grep -Il "Copyright" {} \; \
|
||||
| grep -v \.hg \
|
||||
| while read file; \
|
||||
do \
|
||||
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
|
||||
LC_ALL=C sed -b -i "s/\(.*Copyright.*\)[0-9]\{4\}\( *Sam Lantinga\)/\1`date +%Y`\2/" "$file"; \
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user