Skip to content

Commit

Permalink
- Added fix-bom target
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11183 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Feb 23, 2012
1 parent 3c2a60b commit 6dca03a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile.in
Expand Up @@ -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

Expand Down

0 comments on commit 6dca03a

Please sign in to comment.