mirror of
https://github.com/clearlinux/clr-debug-info.git
synced 2026-04-28 11:13:35 +00:00
change xz for zstd
Fixes #4 Signed-off-by: Josue David Hernandez Gutierrez <josue.d.hernandez.gutierrez@intel.com>
This commit is contained in:
committed by
Patrick McCarty
parent
bca3bdefda
commit
0387249d7a
@@ -66,17 +66,17 @@ process_one() {
|
||||
|
||||
mkdir -p "$destdir"
|
||||
if [ "$filetype" = "f" ]; then
|
||||
tar --no-recursion -C "$srcdir" -Jcf "$dest" "$tarcontent"
|
||||
tar --no-recursion -C "$srcdir" --zstd -cf "$dest" "$tarcontent"
|
||||
elif [ "$filetype" = "l" ]; then
|
||||
# We "unsymlink" non-broken symlinks as an optimization by adding the
|
||||
# symlink target to the dest tarball, transforming the name as appropriate.
|
||||
if target=$(realpath -e "$srcloc" --relative-to="$srcdir" 2> /dev/null); then
|
||||
tar --no-recursion -C "$srcdir" -Jcf "$dest" --transform='s|.*|'"$tarcontent"'|' "$target"
|
||||
tar --no-recursion -C "$srcdir" --zstd -cf "$dest" --transform='s|.*|'"$tarcontent"'|' "$target"
|
||||
else
|
||||
tar --no-recursion -C "$srcdir" -Jcf "$dest" "$tarcontent"
|
||||
tar --no-recursion -C "$srcdir" --zstd -cf "$dest" "$tarcontent"
|
||||
fi
|
||||
elif [ "$filetype" = "d" ]; then
|
||||
tar --no-recursion -C "$srcdir" -Jcf "$dest" "$tarcontent"
|
||||
tar --no-recursion -C "$srcdir" --zstd -cf "$dest" "$tarcontent"
|
||||
fi
|
||||
}
|
||||
export -f process_one
|
||||
|
||||
Reference in New Issue
Block a user