]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
scripts: archive - dereference symlinks
authorTomas Krizek <tomas.krizek@nic.cz>
Mon, 5 Feb 2018 10:18:47 +0000 (11:18 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Mon, 5 Feb 2018 10:18:47 +0000 (11:18 +0100)
Symlinks are pointing to broken locations with the way we generate
source tarballs. Dereference them to avoid this issue.

scripts/make-archive.sh

index 95e7f7ef57efd415ce9ecae7631b79c96ae340cc..f8fa80cdb53b28e646ed876523653cbcc110588f 100755 (executable)
@@ -11,5 +11,5 @@ git submodule status --recursive | grep -q '^[^ ]' && \
 
 # 'git ls-files --recurse-submodules' works only if modules are initialized
 name="knot-resolver-$ver"
-tar caf "$name.tar.xz" --no-recursion --transform "s|^|$name/|" -- $(git ls-files --recurse-submodules)
+tar caf "$name.tar.xz" -h --no-recursion --transform "s|^|$name/|" -- $(git ls-files --recurse-submodules)
 echo "$name.tar.xz"