forked from holochain/kitsune2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (24 loc) · 874 Bytes
/
Makefile
File metadata and controls
28 lines (24 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# A Makefile for bumping versions and publishing all crates.
.PHONY: default publish-all bump
default:
@echo This Makefile no longer has a default target.
publish-all:
cargo publish -p kitsune2_api
cargo publish -p kitsune2_test_utils
cargo publish -p kitsune2_bootstrap_srv
cargo publish -p kitsune2_bootstrap_client
cargo publish -p kitsune2_core
cargo publish -p kitsune2_transport_tx5
cargo publish -p kitsune2_dht
cargo publish -p kitsune2_gossip
cargo publish -p kitsune2
cargo publish -p kitsune2_showcase
export VER="v$$(grep version ./Cargo.toml | head -1 | cut -d ' ' -f 3 | cut -d \" -f 2)" && \
git tag -a "$${VER}" -m "$${VER}" && \
git push --tags;
bump:
@if [ "$(ver)x" = "x" ]; then \
echo "USAGE: make bump ver=0.0.1-alpha8"; \
exit 1; \
fi
sed -i 's/^\(kitsune2[^=]*= { version = "\|version = "\)[^"]*"/\1$(ver)"/g' ./Cargo.toml