Skip to content

Commit

Permalink
Merge pull request #440 from asteris-llc/feature/sum-downloads
Browse files Browse the repository at this point in the history
makefile: add hashes to files
  • Loading branch information
stevendborrelli authored Oct 26, 2016
2 parents 3aff45c + b28dec2 commit 759b255
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,14 @@ xcompile: rpc/pb/root.pb.go rpc/pb/root.pb.gw.go test
-os="freebsd" \
-os="solaris" \
-output="build/$(NAME)_$(shell git describe)_{{.OS}}_{{.Arch}}/$(NAME)"
find build -type file -execdir /bin/bash -c 'shasum -a 256 $$0 > $$0.sha256sum' \{\} \;

package: xcompile
@mkdir -p build/tgz
for f in $(shell find build -name converge | cut -d/ -f2); do \
(cd $(shell pwd)/build/$$f && tar -zcvf ../tgz/$$f.tar.gz converge); \
echo $$f; \
done
(cd $(shell pwd)/build/$$f && tar -zcvf ../tgz/$$f.tar.gz *); \
done
(cd build/tgz; shasum -a 512 * > tgz.sha256sum)

rpc/pb/root.pb.go: rpc/pb/root.proto
protoc -I rpc/pb \
Expand Down

0 comments on commit 759b255

Please sign in to comment.