diff options
author | Cameron Katri <me@cameronkatri.com> | 2021-05-13 16:46:12 -0400 |
---|---|---|
committer | Cameron Katri <me@cameronkatri.com> | 2021-05-13 16:46:12 -0400 |
commit | cd21aeee23e543fde02c19655d4e631cd5118a41 (patch) | |
tree | a4b87dab37bd3fe8db352d5d235ef9aba444e497 /create_tarballs.sh | |
parent | 9b57673ef5c79e1403bc28848fb43021f2c36cbc (diff) | |
download | apple_cmds-cd21aeee23e543fde02c19655d4e631cd5118a41.tar.gz apple_cmds-cd21aeee23e543fde02c19655d4e631cd5118a41.tar.zst apple_cmds-cd21aeee23e543fde02c19655d4e631cd5118a41.zip |
create_tarballs.sh: Add script
Diffstat (limited to 'create_tarballs.sh')
-rwxr-xr-x | create_tarballs.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/create_tarballs.sh b/create_tarballs.sh new file mode 100755 index 0000000..25df187 --- /dev/null +++ b/create_tarballs.sh @@ -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 |