瀏覽代碼

Improvements in check-source.sh.

legacy
Sam Hocevar 11 年之前
父節點
當前提交
9bea2cdd0a
共有 1 個檔案被更改,包括 4 行新增3 行删除
  1. +4
    -3
      build/check-source.sh

+ 4
- 3
build/check-source.sh 查看文件

@@ -158,12 +158,12 @@ for file in $FILES; do
fi
fi

# Check for CR LF SVN prop
# Check for LF SVN prop
if [ "$repo" = svn -a "$should_check_props" = true ]; then
if [ "$(svn propget svn:eol-style "$file")" != "CR" ]; then
if [ "$(svn propget svn:eol-style "$file")" != "LF" ]; then
clean=false
if [ "$fix" = true ]; then
svn propset svn:eol-style CR "$file"
svn propset svn:eol-style LF "$file"
info "$file is missing svn:eol-style property"
else
error "$file is missing svn:eol-style property"
@@ -242,3 +242,4 @@ else
info "all $total_files source files appear to be OK, congratulations"
fi



Loading…
取消
儲存