From fb31ea44cf6cb15bb29384a715d0e37900845640 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Fri, 4 Feb 2022 17:06:18 +0100 Subject: [PATCH] fixtags.sh --- fixtags.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 fixtags.sh diff --git a/fixtags.sh b/fixtags.sh new file mode 100755 index 0000000..1161612 --- /dev/null +++ b/fixtags.sh @@ -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)"