update scripts for ci

This commit is contained in:
rick 2013-12-13 10:41:15 -07:00 committed by Rick Olson
parent b4f41342fe
commit e36f46f6b4
3 changed files with 12 additions and 11 deletions

@ -1,7 +1,3 @@
[deps.mux]
import = "github.com/gorilla/mux"
commit = "b08c5fcf14d01cb0c20ddf70157f54d4a2c3a38a"
[deps.simpleuuid]
import = "github.com/streadway/simpleuuid"
commit = "6617b501e485b77e61b98cd533aefff9e258b5a7"

@ -1,2 +1,5 @@
#!/bin/sh
script/fmt
GOPATH="`pwd`/.gopack/vendor" \
go run script/build.go "$@"

@ -1,9 +1,11 @@
#!/bin/bash
gofmt -w -l *.go \
client/*.go \
cmd/*.go \
commands/*.go \
filters/*.go \
queuedir/*.go \
script/*.go
gofmt -w -l "$@" *.go
# don't run gofmt in these directories
ignored=(/bin/ /docs/ /log/ /tmp/)
for i in */ ; do
if [[ ! ${ignored[*]} =~ "/$i" ]]; then
gofmt -w -l "$@" "${i%?}"
fi
done