knot-dns/scripts/make-dev-archive.sh
Jakub Ružička 7e914793d8 distro: add apkg support
Change packaging templates distro/pkg/* to use {{ version }}.

Add scripts/make_dev_archive.sh to create dev archives.

Add apkg config: distro/config/apkg.toml

With these changes, apkg can be used to package Knot DNS.
2021-05-26 14:53:41 +02:00

14 lines
387 B
Bash
Executable file

#!/bin/bash
# SPDX-License-Identifier: GPL-3.0-or-later
# Create a develpoment tarball
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.*