Add format and check to the makefile

pull/681/merge
John Shahid 2014-06-23 12:52:39 -04:00
parent 5a3ea36b65
commit 17832294d2
1 changed files with 6 additions and 0 deletions

View File

@ -375,3 +375,9 @@ packages:
package: | packages build package_version_string $(files)
mv -f scripts/post_install.sh.bak scripts/post_install.sh
check_format:
git ls-files | grep '.go$$' | xargs gofmt -l
format:
git ls-files | grep '.go$$' | xargs gofmt -w -s