9 Commits

Author SHA1 Message Date
Gustavo Adolfo Mesa Roldán 6b94a50229 0.5r6 - stable 2020-10-03 05:56:48 +02:00
Gustavo Adolfo Mesa Roldán 2596a6a6fb 0.5r6 - More... 2020-10-03 05:40:11 +02:00
Gustavo Adolfo Mesa Roldán b8cb0defe8 0.5r5 - vmdk run 2020-10-03 05:05:40 +02:00
Gustavo Adolfo Mesa Roldán b10ba9ffee 0.5r4 - Readme 2020-10-03 03:52:10 +02:00
Gustavo Adolfo Mesa Roldán 8ae84ab526 0.5r4 - Readme 2020-10-03 03:33:00 +02:00
Gustavo Adolfo Mesa Roldán 6692024ae1 0.5r4 - Readme 2020-10-03 03:27:35 +02:00
Gustavo Adolfo Mesa Roldán 9a13b0168c 0.5r4 - Readme 2020-10-03 03:26:43 +02:00
Gustavo Adolfo Mesa Roldán 446b6647ed 0.5r4 - Readme 2020-10-03 03:20:12 +02:00
Gustavo Adolfo Mesa Roldán fd40e86308 0.5r4 2020-10-03 03:18:22 +02:00
5 changed files with 60 additions and 29 deletions
+50 -15
View File
@@ -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,43 @@ $ 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
- tar.gz
- tar.xz
- tgz
- zip
###### Unpacking only:
- arj
- cab
- dmg
- iso
- lzh
- lzma
- rpm
- SquashFS
- vdi
- vhd
- vmdk
- win
- xar
- z
## Testing with docker ## Testing with docker
``` ```
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
VERSION=0.5r4 VERSION=0.5r6
DEST=$1 DEST=$1
shift 1 shift 1
ORIG=$@ ORIG=$@
+1 -4
View File
@@ -14,10 +14,7 @@ extension.
7z, bz2, gz, rar, tar, tar.bz2, tar.gz, tar.xz, tgz, zip 7z, bz2, gz, rar, tar, tar.bz2, tar.gz, tar.xz, tgz, 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
View File
@@ -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
+6 -7
View File
@@ -20,10 +20,7 @@ function help()
echo " 7z, bz2, gz, rar, tar, tar.bz2, tar.gz, tar.xz, tgz, zip" echo " 7z, bz2, gz, rar, tar, tar.bz2, tar.gz, tar.xz, tgz, 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 ""
} }
@@ -61,4 +59,5 @@ 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
} }