From 089f42f8dd81428b578939f385eb143254a83644 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Sat, 5 Aug 2000 20:59:22 +0000 Subject: Look for oafinfo files in oaf's prefix, not gnome-libs's. Allow binaries * tools/verify-evolution-install.sh: Look for oafinfo files in oaf's prefix, not gnome-libs's. Allow binaries to be installed anywhere in $PATH. svn path=/trunk/; revision=4555 --- tools/verify-evolution-install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'tools/verify-evolution-install.sh') diff --git a/tools/verify-evolution-install.sh b/tools/verify-evolution-install.sh index 00485463a1..bb6f084a5b 100755 --- a/tools/verify-evolution-install.sh +++ b/tools/verify-evolution-install.sh @@ -118,7 +118,7 @@ check_oafinfo() { #othername=$2 base=$1.oafinfo - search="${gl_datadir}/oaf:$OAF_INFO_PATH" + search="${oaf_prefix}/share/oaf:$OAF_INFO_PATH" IFSback="$IFS" IFS=":" ok=no @@ -174,8 +174,21 @@ check_bin() { #name=$1 #othername=$2 - if test ! -f ${gl_bindir}/$1 ; then - problem="The binary $1 isn't installed into Gnome's prefix" + IFSbak="$IFS" + search="$PATH" + IFS=":" + passed=no + + for ping in $search; do + if test -x $ping/$1 ; then + passed=yes; + fi + done + + IFS="$IFSbak" + + if test x"$passed" = xno ; then + problem="The binary $1 isn't in your PATH" rpmsolution="This problem shouldn't happen with RPM installations. Verify your installation of Helix Gnome." debsolution="This problem shouldn't happen with DEB installations. Verify your installation of Helix Gnome." srcsolution="Re-run 'configure' in $2's source directory with the flag '--bindir=$gl_bindir'." @@ -418,6 +431,7 @@ environment variable OAF_CLIENT pointing to it" problem fi +oaf_prefix=`$OAF_CONFIG --prefix` check_oafinfo oafd oaf #gconf -- cgit