2 if command -v bsdtar
>/dev
/null
2>&1; then
4 elif ! tar --version | grep "GNU" >/dev
/null
2>&1; 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
18 VERSION
="$(cat ${i}/.apple_version)"
19 REGEX
="|^${i}|${i}-${VERSION}|"
21 network_cmds
) REGEX
="|^|network_cmds-${VERSION}/|" EXTRA_PATHS
="lib/libpcap";;
22 remote_cmds
) REGEX
="|^|remote_cmds-${VERSION}/|" EXTRA_PATHS
="lib/libtelnet";;
25 printf "(%i) %s\n" "$num" "$i"
26 cp setup.sh
$i/setup.sh
27 cp $i/Makefile.inc
$i.Makefile.inc
28 sed -i '' -e /\.\.
\\/Makefile\.inc
/d
$i/Makefile.inc
29 cat Makefile.inc
>> $i/Makefile.inc
30 ${TAR} -s ${REGEX} -caf ${i}-${VERSION}.
tar.zst
$i ${EXTRA_PATHS}
31 mv $i.Makefile.inc
$i/Makefile.inc