X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fscripts%2Fexim_install;h=1e8805024f055811ac104c48e5dc00454bb90416;hb=00f1386065b4ab2aed12facd883ebd324c8c66d5;hp=2f70c6e35fa99b740c5eca9575f5937d2e6acb34;hpb=14487e4cc632bd649a2b7285485e4bb8b6825769;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/scripts/exim_install b/src/scripts/exim_install index 2f70c6e35..1e8805024 100755 --- a/src/scripts/exim_install +++ b/src/scripts/exim_install @@ -1,5 +1,4 @@ #! /bin/sh -# $Cambridge: exim/src/scripts/exim_install,v 1.2 2005/09/06 13:18:13 ph10 Exp $ # Script to install Exim binaries in BIN_DIRECTORY, which is defined in # the local Makefile. It expects to be run in a build directory. It needs @@ -218,13 +217,15 @@ while [ $# -gt 0 ]; do # The exim binary is handled specially if [ $name = exim${EXE} ]; then - version=exim-`./exim -bV -C /dev/null | \ + exim="./exim -bV -C /dev/null" + version=exim-`$exim 2>/dev/null | \ awk '/Exim version/ { OFS=""; print $3,"-",substr($4,2,length($4)-1) }'`${EXE} if [ "${version}" = "exim-${EXE}" ]; then echo $com "" - echo $com "*** Could not run ./exim to find version number ***" + echo $com "*** Could not run $exim to find version number ***" echo $com "*** Exim installation ${ver}failed ***" + $exim exit 1 fi @@ -378,7 +379,7 @@ done echo $com "" -if [ `expr "${CONFIGURE_FILE}" : ".*:"` -ne 0 ] ; then +if [ `expr -- "${CONFIGURE_FILE}" : ".*:"` -ne 0 ] ; then echo $com Runtime configuration is specified as the following list: echo $com ' ' ${CONFIGURE_FILE} echo $com Therefore, skipping automatic installation.