aboutsummaryrefslogtreecommitdiff
path: root/aux/workflow/dist.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-06-11 23:37:59 -0300
committerEuAndreh <eu@euandre.org>2021-06-11 23:37:59 -0300
commitab3ad8fca4ec645854a54a50de4ee21c8fd72978 (patch)
treed8910a95004c59c11a7f557379b0eb35284ea5ac /aux/workflow/dist.sh
parentservers/nixvps/configuration.nix: Use subfolders of the same domain over subd... (diff)
downloadtoph-ab3ad8fca4ec645854a54a50de4ee21c8fd72978.tar.gz
toph-ab3ad8fca4ec645854a54a50de4ee21c8fd72978.tar.xz
aux/: Update files
Diffstat (limited to 'aux/workflow/dist.sh')
-rwxr-xr-xaux/workflow/dist.sh15
1 files changed, 7 insertions, 8 deletions
diff --git a/aux/workflow/dist.sh b/aux/workflow/dist.sh
index 0ae0ec4..c061a04 100755
--- a/aux/workflow/dist.sh
+++ b/aux/workflow/dist.sh
@@ -2,26 +2,25 @@
set -eu
DATE="$1"
-VERSION="$2"
VVERSION="v$2"
PROJECT="$3"
if git show "$VVERSION" 1>/dev/null 2>/dev/null; then
- echo "Version '$VVERSION' already exists." >&2
- exit 1
+ echo "Version '$VVERSION' already exists." >&2
+ exit 1
fi
if [ "$DATE" != "$(git log -1 --format=%cd --date=short HEAD)" ]; then
- echo "Date '$DATE' is not up-to-date." >&2
- exit 1
+ echo "Date '$DATE' is not up-to-date." >&2
+ exit 1
fi
if [ "Release $VVERSION" != "$(git log --format=%B -1 HEAD | head -n1)" ]; then
- echo "Commit message isn't 'Release $VVERSION'." >&2
- exit 1
+ echo "Commit message isn't 'Release $VVERSION'." >&2
+ exit 1
fi
-sh aux/workflow/assert-changelog.sh "$DATE" "$VERSION" "$PROJECT"
+sh aux/workflow/assert-changelog.sh "$PROJECT"
git tag "$VVERSION"