fixtags.sh

This commit is contained in:
Tony Garnock-Jones 2022-02-04 17:06:18 +01:00
parent d75bfe4e35
commit fb31ea44cf
1 changed files with 11 additions and 0 deletions

11
fixtags.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
buildtag() {
name=$(grep '^name' "$1" | head -1 | sed -e 's:^.*"\([^"]*\)":\1:')
version=$(grep '^version' "$1" | head -1 | sed -e 's:^.*"\([^"]*\)":\1:')
echo "$name-v$version"
}
git tag "$(buildtag syndicate/Cargo.toml)"
git tag "$(buildtag syndicate-macros/Cargo.toml)"
git tag "$(buildtag syndicate-server/Cargo.toml)"