rqlite_client 0.1.0

rqlite database client with optional extra convenience
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

script=$(basename "$0")

fail() {
	echo "$script: pre-push hook failed" >&2
	exit 1
}

version=v$(sed -e '/^version[ =]/!d' -e 's/^version[ =]*//' -e 's/"//g' Cargo.toml)

git tag | grep -q "^$version$"
[ "$?" -eq 0 ] || {
	git tag -s -m "build: release $version" "$version" || fail
}

exit 0