| The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # | ||||
| 3 | # Convert EOL convention on source files from CRLF to LF. | ||||
| 4 | # | ||||
| 5 | |||||
| 6 | echo "Scanning..." | ||||
| 7 | FILES=`find . \( -iname '*.c' -o -iname '*.cpp' -o -iname '*.h' -o -iname '*.mk' -o -iname '*.html' -o -iname '*.css' \) -print` | ||||
| 8 | |||||
| 9 | echo "Converting..." | ||||
| 10 | for file in $FILES ; do | ||||
| 11 | echo $file | ||||
| 12 | tr -d \\r < $file > _temp_file | ||||
| 13 | mv _temp_file $file | ||||
| 14 | done | ||||
| 15 | exit 0 | ||||
| 16 | |||||