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