From 6cc0e95e62e47228dc39dfb5d29d70aee09c8b77 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 15 Apr 2009 23:57:29 +0000 Subject: made a more specific test for 'mail' to avoid error with detecting 'email' on debian-stable-powerpc svn path=/trunk/; revision=11033 --- scripts/auto-build/auto-build-common | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'scripts/auto-build') diff --git a/scripts/auto-build/auto-build-common b/scripts/auto-build/auto-build-common index d2d4f1b7..72cde508 100644 --- a/scripts/auto-build/auto-build-common +++ b/scripts/auto-build/auto-build-common @@ -39,10 +39,12 @@ fi # cygwin/Mingw don't have 'mail', but do have 'email' which is close enough. # To get around the troubles with mail servers, we'll contact the SMTP server # of the mailing lists directly (mail.iem.at). -if [ -x `which email` ]; then - MAIL_COMMAND="email --smtp-server mail.iem.at" +if [ -x /usr/bin/mail ]; then + MAIL_COMMAND=/usr/bin/mail +elif [ -x /bin/mail ]; then + MAIL_COMMAND=/bin/mail else - MAIL_COMMAND=mail + MAIL_COMMAND="email --smtp-server mail.iem.at" fi -- cgit v1.2.1