diff options
author | Jakub Ružička <jakub.ruzicka@nic.cz> | 2021-04-21 17:49:11 +0200 |
---|---|---|
committer | Jakub Ružička <jakub.ruzicka@nic.cz> | 2021-05-26 14:53:41 +0200 |
commit | 7e914793d843653a3b5cb83e2be145ce9cd0e4e2 (patch) | |
tree | 188e36978899bf2afa65cfa168d9bb079dea5c91 /scripts | |
parent | distro: add missing build deps (diff) | |
download | knot-7e914793d843653a3b5cb83e2be145ce9cd0e4e2.tar.xz knot-7e914793d843653a3b5cb83e2be145ce9cd0e4e2.zip |
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.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/make-dev-archive.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/make-dev-archive.sh b/scripts/make-dev-archive.sh new file mode 100755 index 000000000..693ca506e --- /dev/null +++ b/scripts/make-dev-archive.sh @@ -0,0 +1,14 @@ +#!/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.* |