#!/bin/bash set -e -u; if [ $# -eq 1 ]; then cd "$1"; fi PREFIX=release; git pull --tags; TAG=$(git tag --list | grep "^$PREFIX-" | sort -r | head -n 1); if git verify-tag "$TAG" | grep "TRUST_ULTIMATE" 2>&1 > /dev/null; then git checkout "$TAG"; ./configure.sh; else exit 1; fi