]> git.cameronkatri.com Git - apple_cmds.git/commitdiff
create_tarballs.sh: Add script
authorCameron Katri <me@cameronkatri.com>
Thu, 13 May 2021 20:46:12 +0000 (16:46 -0400)
committerCameron Katri <me@cameronkatri.com>
Thu, 13 May 2021 20:46:12 +0000 (16:46 -0400)
create_tarballs.sh [new file with mode: 0755]

diff --git a/create_tarballs.sh b/create_tarballs.sh
new file mode 100755 (executable)
index 0000000..25df187
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/sh
+num=0
+for i in adv_cmds basic_cmds bootstrap_cmds \
+               developer_cmds diskdev_cmds doc_cmds \
+               file_cmds mail_cmds misc_cmds network_cmds \
+               patch_cmds remote_cmds shell_cmds \
+               system_cmds text_cmds; do
+       EXTRA_PATHS=""
+       case "$i" in
+               network_cmds) EXTRA_PATHS="lib/libpcap";;
+               remote_cmds) EXTRA_PATHS="lib/libtelnet";;
+       esac
+       num=$((num+1))
+       printf "(%i) %s\n" "$num" "$i"
+       tar caf $i.tar.zst $i ${EXTRA_PATHS}
+done