$NetBSD: patch-al,v 1.2 1998/08/07 10:36:38 agc Exp $ --- src/toss/rununpack.sh.orig Thu Jul 16 18:36:08 1998 +++ src/toss/rununpack.sh Thu Jul 16 18:38:09 1998 @@ -17,7 +17,7 @@ # 0 short 0x60ea ARJ Archive # -# Programs are searched in: /bin, /usr/bin, /usr/local/bin +# Programs are searched in: /bin, /usr/bin, ${PREFIX}/bin PRG= SPOOL=`$PRG/ftnconfig =spooldir` @@ -109,45 +109,45 @@ ARJ | Arj | arj) [ -x /bin/unarj ] && cmd=/bin/unarj [ -x /usr/bin/unarj ] && cmd=/usr/bin/unarj - [ -x /usr/local/bin/unarj ] && cmd=/usr/local/bin/unarj + [ -x ${PREFIX}/bin/unarj ] && cmd=${PREFIX}/bin/unarj xcmd="$cmd e $arc" lcmd="$cmd l $arc" ;; ARC | Arc | arc) [ -x /bin/arc ] && cmd=/bin/arc [ -x /usr/bin/arc ] && cmd=/usr/bin/arc - [ -x /usr/local/bin/arc ] && cmd=/usr/local/bin/arc + [ -x ${PREFIX}/bin/arc ] && cmd=${PREFIX}/bin/arc xcmd="$cmd e $arc" lcmd="$cmd l $arc" ;; ZIP | Zip | zip) [ -x /bin/unzip ] && cmd=/bin/unzip [ -x /usr/bin/unzip ] && cmd=/usr/bin/unzip - [ -x /usr/local/bin/unzip ] && cmd=/usr/local/bin/unzip + [ -x ${PREFIX}/bin/unzip ] && cmd=${PREFIX}/bin/unzip xcmd="$cmd -ojL $arc" lcmd="$cmd -l $arc" ;; RAR | Rar | rar) [ -x /bin/rar ] && cmd=/bin/rar [ -x /usr/bin/rar ] && cmd=/usr/bin/rar - [ -x /usr/local/bin/rar ] && cmd=/usr/local/bin/rar + [ -x ${PREFIX}/bin/rar ] && cmd=${PREFIX}/bin/rar xcmd="$cmd e $arc" lcmd="$cmd l $arc" ;; LHA | LHa | Lha | lha) [ -x /bin/lharc ] && cmd=/bin/lharc [ -x /usr/bin/lharc ] && cmd=/usr/bin/lharc - [ -x /usr/local/bin/lharc ] && cmd=/usr/local/bin/lharc + [ -x ${PREFIX}/bin/lharc ] && cmd=${PREFIX}/bin/lharc [ -x /bin/lha ] && cmd=/bin/lha [ -x /usr/bin/lha ] && cmd=/usr/bin/lha - [ -x /usr/local/bin/lha ] && cmd=/usr/local/bin/lha + [ -x ${PREFIX}/bin/lha ] && cmd=${PREFIX}/bin/lha xcmd="$cmd ei $arc" lcmd="$cmd l $arc" ;; ZOO | Zoo | zoo) [ -x /bin/zoo ] && cmd=/bin/zoo [ -x /usr/bin/zoo ] && cmd=/usr/bin/zoo - [ -x /usr/local/bin/zoo ] && cmd=/usr/local/bin/zoo + [ -x ${PREFIX}/bin/zoo ] && cmd=${PREFIX}/bin/zoo xcmd="$cmd e: $arc" lcmd="$cmd l $arc" ;;