#!/bin/shset-eu
DATE="$1"VERSION="v$2"ifgitshow"$VERSION"1>/dev/null2>/dev/null;thenecho"Version '$VERSION' already exists."exit1fiif["$DATE"!="$(gitlog-1--format=%cd--date=shortHEAD)"];thenecho"Date '$DATE' is not up-to-date."exit1fi
gittag"$VERSION"