summaryrefslogtreecommitdiff
path: root/scripts/verify-tag
blob: 7275ba748338d0199e3ef29bc2742ec62d7bc7f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

export GNUPGHOME=/etc/metadata/gnupg
mkdir -p $GNUPGHOME
if [ $(lsb_release -is) == 'Debian' ]; then
	export GPG=gpg
else
	export GPG=gpg2
fi

git config --global gpg.program $GPG

tag=$(git tag -l "fidus-metadata-[0-9]*" | sort | tail -1)
if [ -z "$tag" ]; then
   echo "no matching tag found"
   exit 1
fi
git checkout $tag && git tag -v $tag