diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..ef43550 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# Gitlab repository +REPO="lvmteam/lvm2" + +# 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') + +# Trim 'v' character in TAG_NAME variable +VERSION=$(echo "$TAG_NAME" | tr -d 'v') + +# Replace '_' with '.' +VERSION=${VERSION//_/.} + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 0ddf40d..bae5357 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,6 @@ name: lvm2 description: Logical Volume Manager 2 -version: 2.03.23 -revision: 4 +version: 2.03.35 url: https://sourceware.org/lvm2/ license: GPL2,LGPL2.1 architecture: any