From 13fa007a83a9154d10f059baa94caf0ddd2cf4af Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 15 Sep 2023 18:44:42 +0900 Subject: [PATCH] Add release script --- makerelease.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 makerelease.sh diff --git a/makerelease.sh b/makerelease.sh new file mode 100755 index 0000000..7ddf7b6 --- /dev/null +++ b/makerelease.sh @@ -0,0 +1,20 @@ +#!/bin/sh -e + +TAG=$1 +PREV_TAG=$2 + +git checkout refs/tags/$TAG +git log --pretty=fuller --date=short refs/tags/$PREV_TAG..HEAD > ChangeLog + +autoreconf -i +./configure && \ + make dist-bzip2 && make dist-gzip && make dist-xz || echo "error" +make distclean + +rm -f checksums.txt + +VERSION=`echo -n $TAG | sed -E 's|^v([0-9]+\.[0-9]+\.[0-9]+)(-DEV)?$|\1|'` +for f in nghttp3-$VERSION.tar.bz2 nghttp3-$VERSION.tar.gz nghttp3-$VERSION.tar.xz; do + sha256sum $f >> checksums.txt + gpg --armor --detach-sign $f +done