Browse Source

0.2r2 - Install the compressors dependences

master
Gustavo Adolfo Mesa Roldán 3 years ago
parent
commit
e8aee6a828
2 changed files with 30 additions and 3 deletions
  1. +26
    -2
      lch
  2. +4
    -1
      lch.1

+ 26
- 2
lch View File

@ -1,5 +1,5 @@
#!/bin/bash
VERSION=0.2r1
VERSION=0.2r2
DEST=$1
shift 1
ORIG=$@
@ -87,12 +87,13 @@ function help()
echo "Help:"
echo "-----"
echo ""
echo "lch [-h] [-v] [-c] [FILE [FILE]]"
echo "lch [-h] [-v] [-c] [-i] [FILE [FILE]]"
echo ""
echo "Examples:"
echo "$ lch -h -This help"
echo "$ lch -v -print version"
echo "$ lch -c -check compresion systems"
echo "$ lch -i -install the compressors dependences."
echo "$ lch file.zip /home/file -Compress"
echo "$ lch file.zip -Decompress"
echo ""
@ -130,6 +131,23 @@ function check()
exit 0
}
function install()
{
echo "Install dependences"
echo ""
if [ -x "$(command -v apt)" ]
then
echo "Detect APT system"
echo ""
apt install tar bzip2 gzip zip p7zip-full
else
echo "No detect installer"
echo ""
fi
exit 0
}
if [ "$DEST" = "--help" ] || [ "$DEST" = "-h" ]
then
help
@ -142,6 +160,12 @@ then
exit 0
fi
if [ "$DEST" = "--install" ] || [ "$DEST" = "-i" ]
then
install
exit 0
fi
if [ "$DEST" = "--version" ] || [ "$DEST" = "-v" ]
then
echo "Linux Compression Humanized $VERSION"


+ 4
- 1
lch.1 View File

@ -1,4 +1,4 @@
.TH LCH 1 "3 August 2020"
.TH LCH 1 "26 September 2020"
.SH NAME
lch \- command\-line compressor and decompressor for humans
.SH SYNOPSIS
@ -24,6 +24,9 @@ Print current version.
.TP
\fI\-c, \-\-check\fP
Print a check the compressors installed.
.TP
\fI\-i, \-\-install\fP
Install the compressors dependences.
.SH EXAMPLES


Loading…
Cancel
Save