Skip to content

Commit 6dca03a

Browse files
committed
- Added fix-bom target
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11183 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 3c2a60b commit 6dca03a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ fix-svn-eol-style:
7474
svn propset svn:eol-style LF `find SimulationRuntime/c Compiler/runtime/ libraries/ OMEdit/ OMNotebook/ | egrep "\.[ch]\$$|\.[ch]pp\$$" | grep -v "[ ]"`
7575
svn propset svn:eol-style LF `find . | grep /Makefile\$$`
7676
svn propset svn:eol-style LF `find . | grep /Makefile.in\$$`
77+
fix-bom:
78+
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
7779

7880
.PRECIOUS: Makefile
7981

0 commit comments

Comments
 (0)