mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-01 00:54:24 +03:00
* extfs/urar.in: Search $PATH for unrar, fallback to rar.
This commit is contained in:
parent
315e7ce3ff
commit
a25ad31daf
@ -1,3 +1,7 @@
|
||||
2003-01-24 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||
|
||||
* extfs/urar.in: Search $PATH for unrar, fallback to rar.
|
||||
|
||||
2003-01-13 Adam Byrtek <alpha@debian.org>
|
||||
|
||||
* extfs/patchfs.in: context diff format support, regular
|
||||
|
@ -6,16 +6,21 @@
|
||||
# Andrew V. Samoilov <sav@bcs.zp.ua> 2000
|
||||
# beta version 2.0
|
||||
#
|
||||
RAR=rar
|
||||
UNRAR=unrar # Prefer unrar (freeware)
|
||||
#
|
||||
# NOTE: rar ver 2.0 by Eugene Roshal
|
||||
# ftp.elf.stuba.sk/pub/pc/pack
|
||||
#
|
||||
# rar and unrar can be found on http://www.rarlabs.com/
|
||||
|
||||
if ! unrar >/dev/null 2>&1; then
|
||||
UNRAR=$RAR
|
||||
fi
|
||||
RAR=rar
|
||||
UNRAR=$RAR
|
||||
|
||||
# Prefer unrar (freeware). Try to find unrar in $PATH.
|
||||
save_IFS="$IFS"; IFS=:
|
||||
for dir in $PATH; do
|
||||
IFS="$save_IFS"
|
||||
test -z "$dir" && dir=.
|
||||
if test -x $dir/unrar -a -f $dir/unrar; then
|
||||
UNRAR=$dir/unrar
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
mcrarfs_list ()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user