Skip to content

Commit

Permalink
Add .gitattributes & normalize line endings (open-telemetry#1230)
Browse files Browse the repository at this point in the history
Co-authored-by: Armin Ruech <[email protected]>
  • Loading branch information
Oberon00 and arminru authored Nov 26, 2020
1 parent 3df4ec4 commit 08420ca
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 17 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* text=auto eol=lf

*.cmd text eol=crlf
*.bat text eol=crlf
30 changes: 15 additions & 15 deletions docfx.cmd
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
SETLOCAL
SETLOCAL ENABLEEXTENSIONS

docfx.exe build docfx.json > docfx.log
@IF NOT %ERRORLEVEL% == 0 (
type docfx.log
ECHO Error: docfx build failed. 1>&2
EXIT /B %ERRORLEVEL%
)
@type docfx.log
@type docfx.log | findstr /C:"Build succeeded."
@IF NOT %ERRORLEVEL% == 0 (
ECHO Error: you have introduced build warnings. 1>&2
EXIT /B %ERRORLEVEL%
)
SETLOCAL
SETLOCAL ENABLEEXTENSIONS

docfx.exe build docfx.json > docfx.log
@IF NOT %ERRORLEVEL% == 0 (
type docfx.log
ECHO Error: docfx build failed. 1>&2
EXIT /B %ERRORLEVEL%
)
@type docfx.log
@type docfx.log | findstr /C:"Build succeeded."
@IF NOT %ERRORLEVEL% == 0 (
ECHO Error: you have introduced build warnings. 1>&2
EXIT /B %ERRORLEVEL%
)
4 changes: 2 additions & 2 deletions toc.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
- name: OpenTelemetry Specification
href: ./README.md
- name: OpenTelemetry Specification
href: ./README.md

0 comments on commit 08420ca

Please sign in to comment.