Skip to content

Commit

Permalink
consrv: tag v1.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Layher <[email protected]>
  • Loading branch information
mdlayher committed Apr 15, 2022
1 parent 88c31b8 commit b1f8321
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions scripts/mkrelease.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env bash
set -e

if [[ -z $1 ]]; then
echo "must specify a version number argument"
exit 1
fi

if [[ $1 =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "tagging release: $1"
else
echo "invalid version number: $1"
exit 1
fi

TIMESTAMP=$(date +%s)
echo $1 > .gittag
echo $TIMESTAMP > .gittagtime

set -x

git commit --date $TIMESTAMP -a -s -v -S -m "consrv: tag $1"
git tag -f -s $1 -m "$1"

0 comments on commit b1f8321

Please sign in to comment.