Skip to content

Commit

Permalink
fix makefile (oras-project#272)
Browse files Browse the repository at this point in the history
Signed-off-by: Shiwei Zhang <[email protected]>
  • Loading branch information
shizhMSFT authored May 18, 2021
1 parent e85f6b7 commit 7ecdb44
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,11 @@ build-windows:

.PHONY: check-encoding
check-encoding:
! find cmd pkg internal examples -name "*.go" -type f -exec file "{}" ";" | grep CRLF
! find scripts -name "*.sh" -type f -exec file "{}" ";" | grep CRLF
! find cmd internal -name "*.go" -type f -exec file "{}" ";" | grep CRLF

.PHONY: fix-encoding
fix-encoding:
find cmd pkg internal examples -type f -name "*.go" -exec sed -i -e "s/\r//g" {} +
find scripts -type f -name "*.sh" -exec sed -i -e "s/\r//g" {} +
find cmd internal -type f -name "*.go" -exec sed -i -e "s/\r//g" {} +

.PHONY: vendor
vendor:
Expand Down

0 comments on commit 7ecdb44

Please sign in to comment.