You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
345 B
17 lines
345 B
4 months ago
|
#!/bin/sh
|
||
|
#
|
||
|
# Convert EOL convention on source files from CRLF to LF.
|
||
|
#
|
||
|
|
||
|
echo "Scanning..."
|
||
|
FILES=`find . \( -iname '*.c' -o -iname '*.cpp' -o -iname '*.h' -o -iname '*.mk' -o -iname '*.html' -o -iname '*.css' \) -print`
|
||
|
|
||
|
echo "Converting..."
|
||
|
for file in $FILES ; do
|
||
|
echo $file
|
||
|
tr -d \\r < $file > _temp_file
|
||
|
mv _temp_file $file
|
||
|
done
|
||
|
exit 0
|
||
|
|