Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| afdbfffd5a | |||
| 2d6e52b093 | |||
| 3f59be7544 | |||
| e5d2578f4e | |||
| 1ee7f59029 | |||
| 8d0e54c3fc | |||
| 0a755b208e |
@@ -5,7 +5,9 @@
|
|||||||
|
|
||||||
# Estudiar la posibilidad de mostras las lista de extenciones usables en ese momento. Dependiendo de las dependecias instaladas en el sistema.
|
# Estudiar la posibilidad de mostras las lista de extenciones usables en ese momento. Dependiendo de las dependecias instaladas en el sistema.
|
||||||
|
|
||||||
# Al instalar rar. Comprobar que wget este en el sistema.
|
# Al instalar rar.
|
||||||
|
- Comprobar que wget este en el sistema.
|
||||||
|
- Preguntar si el usario quiere sotware privativo.
|
||||||
|
|
||||||
# Cambios en 7z:
|
# Cambios en 7z:
|
||||||
- Ficheros para añadir como solo extracción:
|
- Ficheros para añadir como solo extracción:
|
||||||
@@ -14,6 +16,4 @@
|
|||||||
- Comprobar qué dependencias son necesarias para esos formatos.
|
- Comprobar qué dependencias son necesarias para esos formatos.
|
||||||
|
|
||||||
- ¿Ficheros que soporta?
|
- ¿Ficheros que soporta?
|
||||||
AR, ARJ, CAB, CHM, CPIO, CramFS, DMG, EXT, FAT, GPT, HFS, IHEX, ISO, LZH, LZMA, MBR, MSI, NSIS, NTFS, QCOW2, RAR, RPM, SquashFS, UDF, UEFI, VDI, VHD, VMDK, WIM, XAR and Z.
|
AR, ARJ, CAB, CHM, CPIO, CramFS, DMG, EXT, FAT, GPT, HFS, IHEX, ISO, LZH, LZMA, MBR, MSI, NSIS, NTFS, QCOW2, RAR, RPM, SquashFS, UDF, UEFI, VDI, VHD, VMDK, WIM, XAR and Z.
|
||||||
|
|
||||||
# Hacer desinstalador
|
|
||||||
+3
-1
@@ -17,8 +17,10 @@ cp ./lib/* /usr/lib/lch
|
|||||||
chmod 755 /usr/bin/lch
|
chmod 755 /usr/bin/lch
|
||||||
echo " Copied lch in /usr/bin"
|
echo " Copied lch in /usr/bin"
|
||||||
|
|
||||||
if [ -z "$MANPATH" ];then
|
if [ -z "$MANPATH" ] && [ $(manpath 2> /dev/null) ];then
|
||||||
MANPATH=$(manpath)
|
MANPATH=$(manpath)
|
||||||
|
else
|
||||||
|
MANPATH="/usr/local/man"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
MANDIR=${MANPATH%%:*}/man1
|
MANDIR=${MANPATH%%:*}/man1
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
VERSION=0.4r1
|
VERSION=0.4r3
|
||||||
DEST=$1
|
DEST=$1
|
||||||
shift 1
|
shift 1
|
||||||
ORIG=$@
|
ORIG=$@
|
||||||
|
|
||||||
if [ -z /usr/lib/lch/compressor.sh ]; then . /usr/lib/lch/compressor.sh; else . ./lib/compressor.sh; fi
|
if [[ -e /usr/lib/lch/compressor.sh ]]; then . /usr/lib/lch/compressor.sh; else . ./lib/compressor.sh; fi
|
||||||
if [ -z /usr/lib/lch/decompressor.sh ]; then . /usr/lib/lch/decompressor.sh; else . ./lib/decompressor.sh; fi
|
if [[ -e /usr/lib/lch/decompressor.sh ]]; then . /usr/lib/lch/decompressor.sh; else . ./lib/decompressor.sh; fi
|
||||||
if [ -z /usr/lib/lch/check.sh ]; then . /usr/lib/lch/check.sh; else . ./lib/check.sh; fi
|
if [[ -e /usr/lib/lch/check.sh ]]; then . /usr/lib/lch/check.sh; else . ./lib/check.sh; fi
|
||||||
|
|
||||||
function help()
|
function help()
|
||||||
{
|
{
|
||||||
|
|||||||
Executable
+41
@@ -0,0 +1,41 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ "$UID" != "0" ]; then
|
||||||
|
echo " Only root can execute this script, sorry."
|
||||||
|
echo " Try 'sudo $0'"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Si existe el archivo lch
|
||||||
|
if [[ -f "/usr/bin/lch" ]]; then
|
||||||
|
rm /usr/bin/lch
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Si existe el directorio lch
|
||||||
|
if [[ -d "/usr/lib/lch" ]]; then
|
||||||
|
rm -rf "/usr/lib/lch"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Si nulo manpath
|
||||||
|
if [ -z "$MANPATH" ]; then
|
||||||
|
MANPATH=$(manpath)
|
||||||
|
fi
|
||||||
|
|
||||||
|
MANDIR=${MANPATH%%:*}/man1
|
||||||
|
|
||||||
|
# Si man lch.1
|
||||||
|
if [[ -f "$MANDIR/lch.1" ]]; then
|
||||||
|
rm "$MANDIR/lch.1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Si man lch.1.gz
|
||||||
|
if [[ -f "$MANDIR/lch.1.gz" ]]; then
|
||||||
|
rm "$MANDIR/lch.1.gz"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "=============================="
|
||||||
|
echo " lch uninstalled successfully."
|
||||||
|
echo -e "==============================\n"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user