CRLF to LF script

This commit is contained in:
jasonmoxham 2011-06-08 07:25:10 +00:00
parent 6077fd9b98
commit 96aa501150

View File

@ -125,3 +125,6 @@ srcs=$(echo -n $srcs | sed s/"\([^[:space:]]\+\)\(\.cc[[:space:]]*\)"/"\1 "/g)
cat Makefile.am | sed s/"check_PROGRAMS[[:space:]]*=.*"/"check_PROGRAMS = $srcs"/ > tmpfile
mv tmpfile Makefile.am
cd ../../devel
# CRLF to LF on all C files
for i in $(file $(find -name \*.c) | grep -e CRLF | cut -f 1 -d " " | cut -f 1 -d :) ; do cat $i | fromdos > crap ; mv crap $i ; done