1#!/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
17