diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..9adf1a9 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Gitlab repository +REPO="libpipeline/libpipeline" + +# 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"/releases/permalink/latest | jq -r '.tag_name') + +echo "$TAG_NAME" diff --git a/pkg.info b/pkg.info index 8db1e92..5414458 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,6 @@ name: libpipeline description: C library for manipulating pipelines of subprocesses in a flexible and convenient way -version: 1.5.7 -revision: 3 +version: 1.5.8 url: https://libpipeline.nongnu.org/ license: GPL3-or-later architecture: any