github.com/ghodss/etcd@v0.3.1-0.20140417172404-cc329bfa55cb/mod/dashboard/build (about) 1 #!/bin/bash -e 2 3 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 4 cd ${DIR} 5 git clean -x -f dist 6 7 npm install 8 bower install 9 grunt build 10 11 go get github.com/jteeuwen/go-bindata/... 12 13 dirs= 14 for i in `find dist -type d`; do 15 dirs="${dirs} ${i}" 16 done 17 18 ${GOPATH}/bin/go-bindata -nomemcopy -pkg "resources" -o resources/resources.go -prefix dist ${dirs}