Make catchup- a little bit more flexible with tag names

We support tag names like
${package}-${version}
${package}-v${version}
${version}
v${version}

Now add support for things like
${package}-foo-bar-${version}
foo-bar-${version}

for example:
vulkan-sdk-1.3.275.0 for SPIRV-Headers
This commit is contained in:
Brett T. Warden
2025-04-30 13:27:54 -07:00
parent 5ed7435295
commit e005f2164e

View File

@@ -610,7 +610,7 @@ catchup-%:
fi; \
version=$$(rpm -q --qf '%{VERSION}\n' --specfile $(SPECFILE) | head -1); \
echo "Version: $${version}"; \
current_tag=$$(git -C results/$(PKG_NAME) tag --list | grep -E "^($(PKG_NAME)-)?v?$${version}$$") || { \
current_tag=$$(git -C results/$(PKG_NAME) tag --list | grep -E "^($(PKG_NAME)-)?(.+-|v)?$${version}$$") || { \
echo "Error: No tag found for current package version"; \
exit 1; \
}; \