From 12ddb4cbe53eec169a3322cbeda01587a21dd692 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sun, 7 Sep 2025 19:32:05 +0300 Subject: [PATCH] Update package version to 13.1.2 --- check-version.sh | 18 ++++++++++++++++++ pkg.info | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..6ff912e --- /dev/null +++ b/check-version.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# Gitlab repository +REPO="graphviz/graphviz" + +# Replace slash with URL encoded representation +REPO=$(echo "$REPO" | sed 's|/|%2F|g') + +# Get tag name using Gitlab Rest API +TAG_NAME=$(curl -s -L https://gitlab.com/api/v4/projects/"$REPO"/repository/tags | jq -r '.[0].name') + +# Get version number from tag name +#VERSION=$(echo "$TAG_NAME" | rev | cut -d'-' -f1 | rev) + +# Trim 'v' character in VERSION variable +#VERSION=$(echo "$VERSION" | tr -d 'v') + +echo "$TAG_NAME" diff --git a/pkg.info b/pkg.info index b5d132b..9ad1926 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,6 @@ name: graphviz description: Open source graph visualization software -version: 12.2.1 +version: 13.1.2 url: https://www.graphviz.org/ license: EPL-1.0 architecture: any