summaryrefslogtreecommitdiffstats
path: root/src/util/send-pr
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>1997-03-20 00:13:59 +0000
committerTom Yu <tlyu@mit.edu>1997-03-20 00:13:59 +0000
commitb9f063bff001e4b97dc0dc3e2a21e96a468d5c49 (patch)
tree035e3584dfa30144282251992e9f912c8c687469 /src/util/send-pr
parente96b38b2971361d66f00ebf597b5f1d4baf253d9 (diff)
downloadkrb5-b9f063bff001e4b97dc0dc3e2a21e96a468d5c49.tar.gz
krb5-b9f063bff001e4b97dc0dc3e2a21e96a468d5c49.tar.xz
krb5-b9f063bff001e4b97dc0dc3e2a21e96a468d5c49.zip
This commit was generated by cvs2svn to compensate for changes in r10013,
which included commits to RCS files with non-trunk default branches. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10014 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/send-pr')
-rw-r--r--src/util/send-pr/send-pr.sh26
1 files changed, 17 insertions, 9 deletions
diff --git a/src/util/send-pr/send-pr.sh b/src/util/send-pr/send-pr.sh
index 0bd58fc62..e15ea5dfe 100644
--- a/src/util/send-pr/send-pr.sh
+++ b/src/util/send-pr/send-pr.sh
@@ -55,22 +55,30 @@ GNATS_SITE=mit
# What mailer to use. This must come after the config file, since it is
# host-dependent.
-MAIL_AGENT="/usr/lib/sendmail -oi -t"
-if [ ! -r `echo $MAIL_AGENT|sed 's/ .*//'` ] ; then
- ( [ -r /usr/lib/sendmail ] && MAIL_AGENT="/usr/lib/sendmail -oi -t" ) || \
- ( [ -r /usr/sbin/sendmail ] && MAIL_AGENT="/usr/sbin/sendmail -oi -t " ) || \
- MAIL_AGENT="sendmail -oi -t "
-fi
+for dir in /usr/lib /usr/sbin /usr/ucblib; do
+ if test -f $dir/sendmail; then
+ MAIL_AGENT="$dir/sendmail -oi -t"
+ break
+ fi
+done
# How to read the passwd database.
PASSWD="cat /etc/passwd"
+if test -f /bin/domainname && test -n "`/bin/domainname`"; then
+ if test -f /usr/bin/niscat &&
+ /usr/bin/niscat passwd.org_dir > /dev/null 2>&1; then
+ PASSWD="/usr/bin/niscat passwd.org_dir"
+ elif test -f /usr/bin/ypcat && /usr/bin/ypcat passwd > /dev/null 2>&1; then
+ PASSWD="/usr/bin/ypcat passwd"
+ fi
+fi
-ECHON=sysv
+# Figure out how to do "echo -n"
-if [ $ECHON = bsd ] ; then
+if test "`echo -n foo`" = foo; then
ECHON1="echo -n"
ECHON2=
-elif [ $ECHON = sysv ] ; then
+elif test "`echo 'foo\c'`" = foo; then
ECHON1=echo
ECHON2='\c'
else