CRLF to LF script
This commit is contained in:
parent
6077fd9b98
commit
96aa501150
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user