Skip to content

Commit 0ac672a

Browse files
authored
Merge pull request #162 from ngtcp2/release-script
Add release script
2 parents 723d1ae + 13fa007 commit 0ac672a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

makerelease.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/sh -e
2+
3+
TAG=$1
4+
PREV_TAG=$2
5+
6+
git checkout refs/tags/$TAG
7+
git log --pretty=fuller --date=short refs/tags/$PREV_TAG..HEAD > ChangeLog
8+
9+
autoreconf -i
10+
./configure && \
11+
make dist-bzip2 && make dist-gzip && make dist-xz || echo "error"
12+
make distclean
13+
14+
rm -f checksums.txt
15+
16+
VERSION=`echo -n $TAG | sed -E 's|^v([0-9]+\.[0-9]+\.[0-9]+)(-DEV)?$|\1|'`
17+
for f in nghttp3-$VERSION.tar.bz2 nghttp3-$VERSION.tar.gz nghttp3-$VERSION.tar.xz; do
18+
sha256sum $f >> checksums.txt
19+
gpg --armor --detach-sign $f
20+
done

0 commit comments

Comments
 (0)