From 35210db8f42be3005e13e7ee03142c5f2c1af823 Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Mon, 31 Jul 2000 21:44:06 +0000 Subject: Stupid which program prints junk.... svn path=/trunk/; revision=4436 --- tools/verify-evolution-install.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/tools/verify-evolution-install.sh b/tools/verify-evolution-install.sh index 52be32a433..0c1cf8697c 100755 --- a/tools/verify-evolution-install.sh +++ b/tools/verify-evolution-install.sh @@ -42,10 +42,12 @@ check_config() { #bigname=$1 #cfgname=$2 #pkgname=$3 - eval $1=\${$1-\`which $2\`} + eval $1=\${$1-$2} eval val=\$$1 - if test ! -x $val ; then + if which $val /dev/null 2>&1 ; then + : + else problem="Cannot find $2 or it ($val) is not executable" rpmsolution="Install or reinstall the '$3-devel' package" debsolution="Install or reinstall the $3 development libraries." #FIXME @@ -351,7 +353,7 @@ ${1}Conf.sh should be installed into `$GNOME_CONFIG --libdir`" #prep if test -d /var/lib/rpm ; then rpmsystem=yes - RPM=${RPM_PROG-`which rpm`} + RPM=${RPM_PROG-rpm} $RPM --version 1>/dev/null 2>/dev/null /dev/null 2>&1 ; then + : +else problem="oaf-client couldn't be found" rpmsolution="Install the 'oaf-devel' package" debsolution="Install the oaf development libraries" @@ -420,7 +424,7 @@ check_oafinfo oafd oaf check_config GCONF_CONFIG gconf-config GConf check_prefix GCONF_CONFIG GConf versionparse2 "`$GCONF_CONFIG --version`" "0.5" GConf -if test x"`which gconfd-1`" != x ; then +if which gconfd-1 /dev/null 2>/dev/null; then check_oafinfo gconfd-1 GConf check_bin gconfd-1 else -- cgit v1.2.3