2 if command -v bsdtar
&>/dev
/null
; then
4 elif ! tar --version | grep "GNU" &>/dev
/null
; then
12 for i
in adv_cmds basic_cmds bootstrap_cmds \
13 developer_cmds diskdev_cmds doc_cmds \
14 file_cmds mail_cmds misc_cmds network_cmds \
15 patch_cmds remote_cmds shell_cmds \
16 system_cmds text_cmds
; do
20 network_cmds
) TARFLAGS
="-s '|^|network_cmds/|' -caf" EXTRA_PATHS
="lib/libpcap";;
21 remote_cmds
) TARFLAGS
="-s '|^|remote_cmds/|' -caf" EXTRA_PATHS
="lib/libtelnet";;
24 printf "(%i) %s\n" "$num" "$i"
25 ${TAR} ${TARFLAGS} $i.
tar.zst
$i ${EXTRA_PATHS}