• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh -e
2
3TAG=$1
4PREV_TAG=$2
5
6git checkout refs/tags/$TAG
7git log --pretty=fuller --date=short refs/tags/$PREV_TAG..HEAD > ChangeLog
8
9autoreconf -i
10./configure
11make dist-bzip2
12make dist-gzip
13make dist-xz
14make distclean
15
16rm -f checksums.txt
17
18VERSION=`echo -n $TAG | sed -E 's|^v([0-9]+\.[0-9]+\.[0-9]+(-[^.]+(\.[0-9]+)?)?)$|\1|'`
19for f in nghttp2-$VERSION.tar.bz2 nghttp2-$VERSION.tar.gz nghttp2-$VERSION.tar.xz; do
20    sha256sum $f >> checksums.txt
21    echo -n "$GPG_PASSPHRASE" | gpg --batch --passphrase-fd 0 --pinentry-mode loopback --armor --detach-sign $f
22done
23