-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile2
34 lines (25 loc) · 1.19 KB
/
Makefile2
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
29
30
31
32
33
VERSION := $(shell cat ../VERSION)
.PHONY : clean version
clean :
find . -type f -name "*.toml" -exec touch {} +
find . -type f -name "Makefile" -exec touch {} +
cargo clean
version:
toml set Cargo.toml workspace.package.version ${VERSION} > Cargo.toml.tmp && mv Cargo.toml.tmp Cargo.toml
toml set Cargo.toml workspace.dependencies.starlane.version ${VERSION} > Cargo.toml.tmp && mv Cargo.toml.tmp Cargo.toml
toml set Cargo.toml workspace.dependencies.starlane-macros.version ${VERSION} > Cargo.toml.tmp && mv Cargo.toml.tmp Cargo.toml
toml set Cargo.toml workspace.dependencies.starlane-space.version ${VERSION} > Cargo.toml.tmp && mv Cargo.toml.tmp Cargo.toml
toml set Cargo.toml workspace.dependencies.starlane-primitive-macros.version ${VERSION} > Cargo.toml.tmp && mv Cargo.toml.tmp Cargo.toml
#$(MAKE) -C starlane-space version
#$(MAKE) -C starlane-macros version
#$(MAKE) -C starlane version
publish-dry-run-impl:
rustup default stable
publish-impl:
rustup default stable
./publish.sh starlane-primitive-macros 10
./publish.sh starlane-space 10
./publish.sh starlane-macros 10
./publish.sh starlane 0
publish-dry-run: version publish-dry-run-impl
publish: version publish-impl