2021-04-21 11:49:11 -04:00
|
|
|
#!/bin/bash
|
2025-03-22 06:00:44 -04:00
|
|
|
# Copyright (C) CZ.NIC, z.s.p.o. and contributors
|
|
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
# For more information, see <https://www.knot-dns.cz/>
|
|
|
|
|
|
|
|
|
|
#
|
2021-11-24 06:55:31 -05:00
|
|
|
# Create a development tarball
|
2025-03-22 06:00:44 -04:00
|
|
|
#
|
|
|
|
|
|
2021-04-21 11:49:11 -04:00
|
|
|
set -o errexit -o nounset -o xtrace
|
|
|
|
|
|
|
|
|
|
cd "$(dirname ${0})/.."
|
|
|
|
|
|
|
|
|
|
# configure Knot DNS in order to create archive
|
|
|
|
|
autoreconf -if
|
|
|
|
|
./configure
|
|
|
|
|
# create archive and parse output for archive name
|
|
|
|
|
TARDIR=$(make dist 2>&1 | sed -n 's/tardir=\([^ ]\+\).*/\1/p')
|
|
|
|
|
# print created archive name
|
|
|
|
|
ls -1 $TARDIR.tar.*
|