-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge setup-util-{unzip,tar} and add support for xz
- Loading branch information
Showing
5 changed files
with
109 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
#!/usr/bin/env bash | ||
|
||
# https://repology.org/project/tar/versions | ||
# https://packages.debian.org/sid/amd64/tar/filelist | ||
# /bin/tar | ||
# /usr/sbin/rmt-tar | ||
# /usr/sbin/tarcat | ||
|
||
# https://repology.org/project/xz-utils/versions | ||
# https://packages.debian.org/sid/amd64/xz-utils/filelist | ||
# /usr/bin/lzmainfo | ||
# /usr/bin/unxz | ||
# /usr/bin/xz | ||
# /usr/bin/xzcat | ||
# /usr/bin/xzcmp | ||
# /usr/bin/xzdiff | ||
# /usr/bin/xzegrep | ||
# /usr/bin/xzfgrep | ||
# /usr/bin/xzgrep | ||
# /usr/bin/xzless | ||
# /usr/bin/xzmore | ||
|
||
# https://packages.debian.org/sid/amd64/unzip/filelist | ||
# /usr/bin/funzip | ||
# /usr/bin/unzip | ||
# /usr/bin/unzipsfx | ||
# /usr/bin/zipgrep | ||
# /usr/bin/zipinfo | ||
|
||
function setup_util_unziptar() ( | ||
source "$DOROTHY/sources/bash.bash" | ||
local options | ||
|
||
# tar | ||
if test "$*" != '--quiet' || command-missing tar; then | ||
options=( | ||
--cli='tar' | ||
"$@" | ||
APK='tar' | ||
APT='tar' | ||
AUR='tar' | ||
NIX='gnutar' | ||
RPM='tar' | ||
ZYPPER='tar' | ||
) | ||
setup-util "${options[@]}" | ||
fi | ||
|
||
# xz | ||
if test "$*" != '--quiet' || command-missing xz; then | ||
options=( | ||
--cli='xz' | ||
"$@" | ||
APK='xz' | ||
APT='xz-utils' | ||
AUR='xz' | ||
GENTOO='app-arch/xz-utils' | ||
MAGEIA='xz' | ||
NIX='xz' | ||
RPM='xz' | ||
VOID='xz' | ||
ZYPPER='xz' | ||
) | ||
setup-util "${options[@]}" | ||
fi | ||
|
||
# unzip | ||
if test "$*" != '--quiet' || command-missing unzip; then | ||
options=( | ||
--cli='unzip' | ||
"$@" | ||
APK='unzip' | ||
APT='unzip' | ||
AUR='unzip' | ||
BREW='unzip' | ||
RPM='unzip' | ||
ZYPPER='unzip' | ||
) | ||
setup-util "${options[@]}" | ||
fi | ||
) | ||
|
||
# fire if invoked standalone | ||
if test "$0" = "${BASH_SOURCE[0]}"; then | ||
setup_util_unziptar "$@" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters