2018-08-12 14:53:14 -04:00
|
|
|
#! /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)"
|
|
|
|
|
|
|
|
./buildconf.sh
|
|
|
|
./configure
|
|
|
|
make distcheck
|
|
|
|
|
2019-05-12 13:17:11 -04:00
|
|
|
extensions=(
|
|
|
|
gz
|
|
|
|
bz2
|
|
|
|
lz
|
|
|
|
xz
|
|
|
|
)
|
|
|
|
|
|
|
|
for ext in ${extensions[@]} ; do
|
|
|
|
archive=expat-${version}.tar.${ext}
|
|
|
|
gpg --armor --output ${archive}.asc --detach-sign ${archive}
|
|
|
|
gpg --verify ${archive}.asc ${archive}
|
|
|
|
done
|