From 96aa5011505cf985d0b6f7af4992b822f7010ef2 Mon Sep 17 00:00:00 2001 From: jasonmoxham Date: Wed, 8 Jun 2011 07:25:10 +0000 Subject: [PATCH] CRLF to LF script --- devel/regen | 3 +++ 1 file changed, 3 insertions(+) diff --git a/devel/regen b/devel/regen index 220ead37..166ad282 100755 --- a/devel/regen +++ b/devel/regen @@ -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