From f16a04ab16e64f538a2ce94a91663c005853165b Mon Sep 17 00:00:00 2001 From: Vladimír Čunát Date: Tue, 1 Aug 2017 11:06:13 +0200 Subject: add scripts/make-archive.sh as 'git archive' won't include the submodule with aho-corasick code --- scripts/make-archive.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 scripts/make-archive.sh (limited to 'scripts/make-archive.sh') diff --git a/scripts/make-archive.sh b/scripts/make-archive.sh new file mode 100755 index 00000000..4a66f17f --- /dev/null +++ b/scripts/make-archive.sh @@ -0,0 +1,13 @@ +#!/bin/sh -e +# Create a distribution tarball, like 'make dist' from autotools. +ver="$(git describe | sed 's/^v//')" +# 'git ls-files --recurse-submodules' fails, unfortunately +files="$( + git ls-files + cd modules/policy/lua-aho-corasick/ + git ls-files | sed 's|^|modules/policy/lua-aho-corasick/|' + )" +name="knot-resolver-$ver" +tar caf "$name.tar.xz" --no-recursion --transform "s|^|$name/|" -- $files +echo "$name.tar.xz" + -- cgit v1.2.3