Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b25fc8bd8d | |||
| edccc89586 | |||
| 6b94a50229 | |||
| 2596a6a6fb | |||
| b8cb0defe8 | |||
| b10ba9ffee | |||
| 8ae84ab526 | |||
| 6692024ae1 | |||
| 9a13b0168c | |||
| 446b6647ed | |||
| fd40e86308 |
@@ -1,5 +1,19 @@
|
|||||||
# Linux compressor humanizer
|
# Linux compressor humanizer
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
###### install
|
||||||
|
```
|
||||||
|
sudo ./install.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
###### Uninstall
|
||||||
|
```
|
||||||
|
sudo ./uninstall.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
###### Compress
|
###### Compress
|
||||||
```
|
```
|
||||||
$ lch file.zip file1 [file2...]
|
$ lch file.zip file1 [file2...]
|
||||||
@@ -10,22 +24,42 @@ $ lch file.zip file1 [file2...]
|
|||||||
$ lch file.zip
|
$ lch file.zip
|
||||||
```
|
```
|
||||||
|
|
||||||
## Supported extensions
|
###### Options
|
||||||
- tar
|
```
|
||||||
- tar.gz
|
$ lch -h - Show help
|
||||||
- tar.bz2
|
$ lch -v - Print version
|
||||||
- tar.xz
|
$ lch -c - Check compression systems
|
||||||
- bz2
|
$ lch -i - Install the compressors dependencies
|
||||||
- tgz
|
```
|
||||||
- gz
|
|
||||||
- zip
|
|
||||||
- 7z
|
|
||||||
- rar
|
|
||||||
|
|
||||||
## Install
|
## Supported extensions
|
||||||
```
|
|
||||||
sudo ./install.sh
|
###### Packing/unpacking:
|
||||||
```
|
- 7z
|
||||||
|
- bz2
|
||||||
|
- gz
|
||||||
|
- rar
|
||||||
|
- tar
|
||||||
|
- tar.bz2, tbz, tbz2, tb2
|
||||||
|
- tar.gz, tgz
|
||||||
|
- tar.xz, txz
|
||||||
|
- zip
|
||||||
|
|
||||||
|
###### Unpacking only:
|
||||||
|
- arj
|
||||||
|
- cab
|
||||||
|
- dmg
|
||||||
|
- iso
|
||||||
|
- lzh
|
||||||
|
- lzma
|
||||||
|
- rpm
|
||||||
|
- SquashFS
|
||||||
|
- vdi
|
||||||
|
- vhd
|
||||||
|
- vmdk
|
||||||
|
- win
|
||||||
|
- xar
|
||||||
|
- z
|
||||||
|
|
||||||
## Testing with docker
|
## Testing with docker
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
VERSION=0.5r4
|
VERSION=0.5r7
|
||||||
DEST=$1
|
DEST=$1
|
||||||
shift 1
|
shift 1
|
||||||
ORIG=$@
|
ORIG=$@
|
||||||
|
|||||||
@@ -11,13 +11,10 @@ simplicity in mind. Automatically select the compression format by file
|
|||||||
extension.
|
extension.
|
||||||
|
|
||||||
Packing/unpacking supported extensions:
|
Packing/unpacking supported extensions:
|
||||||
7z, bz2, gz, rar, tar, tar.bz2, tar.gz, tar.xz, tgz, zip
|
7z, bz2, gz, rar, tar, tar.bz2, tbz, tbz2, tb2, tar.gz, tgz, tar.xz, txz, zip
|
||||||
|
|
||||||
Unpacking only supported extensions:
|
Unpacking only supported extensions:
|
||||||
arj, cab, dmg, iso, lzh, lzma, rpm, SquashFS
|
arj, cab, dmg, iso, lzh, lzma, rpm, SquashFS, vdi, vhd, vmdk, win, xar, z
|
||||||
|
|
||||||
Unpacking only in beta extensions:
|
|
||||||
cdi, chd, vmdk, win, xar, z
|
|
||||||
|
|
||||||
.SH OPTIONS
|
.SH OPTIONS
|
||||||
.TP
|
.TP
|
||||||
|
|||||||
+1
-1
@@ -59,7 +59,7 @@ function decompressor()
|
|||||||
error_not_install "unzip"
|
error_not_install "unzip"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*.7z | *.arj | *.cab | *.cdi | *.chd | *.dmg | *.iso | *.lzh | *.lzma | *.rpm | *.squashfs | *.vmdk | *.win | *.xar | *.z)
|
*.7z | *.arj | *.cab | *.dmg | *.iso | *.lzh | *.lzma | *.rpm | *.squashfs | *.vdi | *.vhd | *.vmdk | *.win | *.xar | *.z)
|
||||||
if [ -x "$(command -v 7z)" ]
|
if [ -x "$(command -v 7z)" ]
|
||||||
then
|
then
|
||||||
7z e -y $DEST
|
7z e -y $DEST
|
||||||
|
|||||||
+8
-9
@@ -17,13 +17,10 @@ function help()
|
|||||||
echo "$ lch files.zip file1 file2 - Compress multiple"
|
echo "$ lch files.zip file1 file2 - Compress multiple"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Packing/unpacking supported extensions:"
|
echo "Packing/unpacking supported extensions:"
|
||||||
echo " 7z, bz2, gz, rar, tar, tar.bz2, tar.gz, tar.xz, tgz, zip"
|
echo " 7z, bz2, gz, rar, tar, tar.bz2, tbz, tbz2, tb2, tar.gz, tgz, tar.xz, txz, zip"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Unpacking only supported extensions:"
|
echo "Unpacking only supported extensions:"
|
||||||
echo " arj, cab, dmg, iso, lzh, lzma, rpm, SquashFS"
|
echo " arj, cab, dmg, iso, lzh, lzma, rpm, SquashFS, vdi, vhd, vmdk, win, xar, z"
|
||||||
echo ""
|
|
||||||
echo "Unpacking only in beta extensions:"
|
|
||||||
echo " cdi, chd, vmdk, win, xar, z"
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Run 'man lch' for more info."
|
echo "Run 'man lch' for more info."
|
||||||
echo ""
|
echo ""
|
||||||
@@ -35,12 +32,12 @@ function check()
|
|||||||
echo -e "Verification of compression systems:\n"
|
echo -e "Verification of compression systems:\n"
|
||||||
echo -e "Systems\t\t\tStatus"
|
echo -e "Systems\t\t\tStatus"
|
||||||
echo "----------------------------------"
|
echo "----------------------------------"
|
||||||
for i in "rar" "unrar" "tar" "bzip2" "gzip" "zip" "unzip" "7za"
|
for i in "7z" "bzip2" "gzip" "rar" "tar" "unrar" "unzip" "zip"
|
||||||
do
|
do
|
||||||
if ! [ -x "$(command -v $i)" ]
|
if ! [ -x "$(command -v $i)" ]
|
||||||
then
|
then
|
||||||
echo -e "$i\t\t\t\e[91mNot Installed\e[0m"
|
echo -e "$i\t\t\t\e[91mNot Installed\e[0m"
|
||||||
$a = true
|
a=true
|
||||||
else
|
else
|
||||||
echo -e "$i\t\t\t\e[32mInstalled\e[0m"
|
echo -e "$i\t\t\t\e[32mInstalled\e[0m"
|
||||||
fi
|
fi
|
||||||
@@ -48,7 +45,8 @@ function check()
|
|||||||
|
|
||||||
if $a
|
if $a
|
||||||
then
|
then
|
||||||
echo -e "\nIn order to use all the extensions install the packages: tar, bzip2, gzip, zip, unzip, 7za, rar, unrar"
|
echo -e "\nIn order to use all the extensions install the packages."
|
||||||
|
echo -e "Or use 'lch -i' to install all dependences"
|
||||||
fi
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
}
|
}
|
||||||
@@ -60,5 +58,6 @@ function lowercase()
|
|||||||
|
|
||||||
function error_not_install()
|
function error_not_install()
|
||||||
{
|
{
|
||||||
echo -e "$@ \e[91mis not Installed\e[0m, use 'lch -i' to install and 'lch -c' to check."
|
echo -e "$@ \e[91mis not installed\e[0m, use 'lch -i' to install and 'lch -c' to check."
|
||||||
|
exit 0
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user