mirror of
https://gitee.com/openharmony/third_party_nghttp2
synced 2024-11-27 01:50:28 +00:00
24 lines
552 B
Bash
Executable File
24 lines
552 B
Bash
Executable File
#!/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
|
|
|
|
git submodule update --init
|
|
|
|
autoreconf -i
|
|
./configure --with-mruby && \
|
|
make dist-bzip2 && make dist-gzip && make dist-xz || echo "error"
|
|
|
|
rm -f checksums.txt
|
|
|
|
VERSION=`echo -n $TAG | sed -E 's|^v([0-9]+\.[0-9]+\.[0-9]+)(-DEV)?$|\1|'`
|
|
for f in nghttp2-$VERSION.tar.bz2 nghttp2-$VERSION.tar.gz nghttp2-$VERSION.tar.xz; do
|
|
sha256sum $f >> checksums.txt
|
|
gpg --armor --detach-sign $f
|
|
done
|
|
|
|
make distclean
|