mini-build.sh 390 B

12345678910111213141516
  1. #!/bin/sh
  2. cd "$(dirname "${0}")"
  3. say="say"
  4. umask 0022
  5. go-bindata -ignore=\\.DS_Store -prefix static static/... \
  6. && go fmt \
  7. && go vet \
  8. && go test --short \
  9. && go build -ldflags "-s -w -X main.GitSHA1=$(git rev-parse --short HEAD)" -o ~/Sites/b/shaarligo.cgi \
  10. || { echo "Aua" 1>&2 && exit 1; }
  11. "${say}" "pack mas"
  12. ls -Al ~/Sites/b/shaarligo.cgi
  13. echo "http://$(hostname)/~$(whoami)/b/"