Skip to content

Commit

Permalink
Merge pull request #944 from ngtcp2/release-script
Browse files Browse the repository at this point in the history
Add release script
  • Loading branch information
tatsuhiro-t committed Sep 15, 2023
2 parents c12e16b + cae10a7 commit 44241de
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions makerelease.sh
Original file line number Diff line number Diff line change
@@ -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 ngtcp2-$VERSION.tar.bz2 ngtcp2-$VERSION.tar.gz ngtcp2-$VERSION.tar.xz; do
sha256sum $f >> checksums.txt
gpg --armor --detach-sign $f
done

0 comments on commit 44241de

Please sign in to comment.