From 109275dd082c9e7f5a6e64eb86634fc9f46e38f8 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sun, 12 Aug 2018 20:53:14 +0200 Subject: [PATCH] Add script to create signed tarballs for upload (#193) --- expat/.gitignore | 1 + expat/distribute.sh | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100755 expat/distribute.sh diff --git a/expat/.gitignore b/expat/.gitignore index 50cd624b..6e90164e 100755 --- a/expat/.gitignore +++ b/expat/.gitignore @@ -35,4 +35,5 @@ build__R* coverage__R* source__R* /expat-*.tar.bz2 +/expat-*.tar.bz2.asc /stamp-h1 diff --git a/expat/distribute.sh b/expat/distribute.sh new file mode 100755 index 00000000..50829d18 --- /dev/null +++ b/expat/distribute.sh @@ -0,0 +1,20 @@ +#! /bin/bash +# Copyright (C) 2018 Sebastian Pipping +# 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}