Add script to create signed tarballs for upload (#193)

This commit is contained in:
Sebastian Pipping 2018-08-12 20:53:14 +02:00
parent 070f024f61
commit 109275dd08
2 changed files with 21 additions and 0 deletions

1
expat/.gitignore vendored
View File

@ -35,4 +35,5 @@ build__R*
coverage__R*
source__R*
/expat-*.tar.bz2
/expat-*.tar.bz2.asc
/stamp-h1

20
expat/distribute.sh Executable file
View File

@ -0,0 +1,20 @@
#! /bin/bash
# Copyright (C) 2018 Sebastian Pipping <sebastian@pipping.org>
# Licensed under the MIT license
#
# Creates release tarball and detached GPG signature file for upload
set -e
PS4='# '
set -x
version="$(./conftools/get-version.sh lib/expat.h)"
archive=expat-${version}.tar.bz2
./buildconf.sh
./configure
make distcheck
gpg --armor --output ${archive}.asc --detach-sign ${archive}
gpg --verify ${archive}.asc ${archive}