diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..05ea2ec --- /dev/null +++ b/check-version.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Github repository +MODULE="XML::Parser" + +# Get version using the MetaCPAN Rest API +VERSION=$(curl -s -L https://fastapi.metacpan.org/download_url/"$MODULE" | jq -r '.version') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index c097242..17b49f7 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,7 @@ name: perl-xml-parser description: A perl module for parsing xml documents version: 2.47 -revision: 3 +revision: 4 url: https://github.com/chorny/XML-Parser license: GPL,PerlArtistic architecture: any