Skip to content
Snippets Groups Projects
Commit 1c93eb68 authored by Domen Vrankar's avatar Domen Vrankar
Browse files

CPack/STGZ prefer pax for extraction

pax is part of POSIX while tar requires
GNU extensions that are not part of some
UNIX distros
parent f5fae345
No related branches found
No related tags found
No related merge requests found
......@@ -130,7 +130,10 @@ echo ""
use_new_tail_syntax="-n"
tail $use_new_tail_syntax +1 "$0" > /dev/null 2> /dev/null || use_new_tail_syntax=""
tail $use_new_tail_syntax +###CPACK_HEADER_LENGTH### "$0" | gunzip | (cd "${toplevel}" && tar xf -) || cpack_echo_exit "Problem unpacking the @CPACK_PACKAGE_FILE_NAME@"
extractor="pax -r"
command -v pax > /dev/null 2> /dev/null || extractor="tar xf -"
tail $use_new_tail_syntax +###CPACK_HEADER_LENGTH### "$0" | gunzip | (cd "${toplevel}" && ${extractor}) || cpack_echo_exit "Problem unpacking the @CPACK_PACKAGE_FILE_NAME@"
echo "Unpacking finished successfully"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment