aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-04-15 23:57:29 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-04-15 23:57:29 +0000
commit6cc0e95e62e47228dc39dfb5d29d70aee09c8b77 (patch)
treecccc2a16cc39fd8d0185c68eab5c3ec39d62c952
parent16776583ff8f686ce2e636f01f15ae971772c396 (diff)
made a more specific test for 'mail' to avoid error with detecting 'email' on debian-stable-powerpc
svn path=/trunk/; revision=11033
-rw-r--r--scripts/auto-build/auto-build-common8
1 files changed, 5 insertions, 3 deletions
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