From 6dca03acd7c5a71355a39688a5fa26da7cdb7f72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Sj=C3=B6lund?= Date: Thu, 23 Feb 2012 12:43:07 +0000 Subject: [PATCH] - Added fix-bom target git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11183 f25d12d1-65f4-0310-ae8a-bbce733d8d8e --- Makefile.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile.in b/Makefile.in index 76f13415e8a..6b44b9d1e58 100644 --- a/Makefile.in +++ b/Makefile.in @@ -74,6 +74,8 @@ fix-svn-eol-style: svn propset svn:eol-style LF `find SimulationRuntime/c Compiler/runtime/ libraries/ OMEdit/ OMNotebook/ | egrep "\.[ch]\$$|\.[ch]pp\$$" | grep -v "[ ]"` svn propset svn:eol-style LF `find . | grep /Makefile\$$` svn propset svn:eol-style LF `find . | grep /Makefile.in\$$` +fix-bom: + find -type f|while read file;do [ "`head -c3 -- "$file"`" == $'\xef\xbb\xbf' ] && echo "found BOM in: $file"; && sed -i '1 s/^\xef\xbb\xbf//' "$file";done .PRECIOUS: Makefile