release.sh: clean before releasing

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
This commit is contained in:
Hector Sanjuan 2017-12-11 14:10:16 +01:00
parent 847a8a78c4
commit 620886366d
2 changed files with 5 additions and 1 deletions

View File

@ -20,6 +20,9 @@ clean: rwundo clean_sharness
$(MAKE) -C ipfs-cluster-service clean
$(MAKE) -C ipfs-cluster-ctl clean
gx-clean: clean
@rm -f $(deptools)/*
install: deps
$(MAKE) -C ipfs-cluster-service install
$(MAKE) -C ipfs-cluster-ctl install
@ -91,4 +94,4 @@ rwundo: gx
$(gx-go_bin) rewrite --undo
publish: rwundo
$(gx_bin) publish
.PHONY: all gx deps test test_sharness clean_sharness rw rwundo publish service ctl install clean
.PHONY: all gx deps test test_sharness clean_sharness rw rwundo publish service ctl install clean gx-clean

View File

@ -9,6 +9,7 @@ if [ -z $version ]; then
exit 1
fi
make gx-clean
sed -i "s/const Version.*$/const Version = \"$version\"/" version.go
sed -i "s/const Version.*$/const Version = \"$version\"/" ipfs-cluster-ctl/main.go
git commit -S -a -m "Release $version"