We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ec972d commit 177c7d3Copy full SHA for 177c7d3
Makefile
@@ -4,6 +4,7 @@ SHELL=/bin/bash
4
5
.DEFAULT_GOAL := patch
6
7
+PKG = snm
8
RE=[^0-9]*\([0-9]*\)[.]\([0-9]*\)[.]\([0-9]*\)\([0-9A-Za-z-]*\)
9
version = $(subst v,,$(shell git describe --tags --abbrev=0))
10
major_ver = $(shell (echo $(version) | sed -e 's#$(RE)#\1#'))
@@ -14,10 +15,10 @@ define release
14
15
echo "-- Old Tag: $(version)"
16
echo "-- New Tag: $(1)"
17
echo ""
- echo ">> Updating Cargo.toml"
18
+ echo ">> Updating Cargo.toml"
19
sed -i -e 's/^version = .*/version = $(1)/g' Cargo.toml
20
echo ">> Updating Cago.lock"
- cargo update
21
+ cargo update -p $(PKG)
22
echo ">> Release: $(1)"
23
git commit -a -m "Release $(1)"
24
git tag v$(1) -m "Release $(1)"
0 commit comments