* extfs/urar.in: Search $PATH for unrar, fallback to rar.

This commit is contained in:
Pavel Roskin 2003-01-24 07:10:02 +00:00
parent 315e7ce3ff
commit a25ad31daf
2 changed files with 18 additions and 9 deletions

View File

@ -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

View File

@ -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 ()
{