aboutsummaryrefslogtreecommitdiff
path: root/contrib/sendmail/cf/sh
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1998-08-03 05:56:20 +0000
committerPeter Wemm <peter@FreeBSD.org>1998-08-03 05:56:20 +0000
commitc2aa98e247e56d5266d789dfc9b90b524b0019fe (patch)
tree0772be9f4640bcba9db4a0de9e79a39ad377d80b /contrib/sendmail/cf/sh
parentff37c899d76b8a843614fb348674c7e94e4f53ce (diff)
downloadsrc-c2aa98e247e56d5266d789dfc9b90b524b0019fe.tar.gz
src-c2aa98e247e56d5266d789dfc9b90b524b0019fe.zip
Import sendmail-8.9.1 (slightly trimmed) onto a fresh branch undervendor/sendmail/8.9.1
src/contrib as per various discussions. I will copy across our changes and then point the Makefiles across once the dust has settled..
Notes
Notes: svn path=/vendor/sendmail/dist/; revision=38032 svn path=/vendor/sendmail/8.9.1/; revision=38034; tag=vendor/sendmail/8.9.1
Diffstat (limited to 'contrib/sendmail/cf/sh')
-rw-r--r--contrib/sendmail/cf/sh/makeinfo.sh57
1 files changed, 57 insertions, 0 deletions
diff --git a/contrib/sendmail/cf/sh/makeinfo.sh b/contrib/sendmail/cf/sh/makeinfo.sh
new file mode 100644
index 000000000000..424c699d649f
--- /dev/null
+++ b/contrib/sendmail/cf/sh/makeinfo.sh
@@ -0,0 +1,57 @@
+#!/bin/sh
+#
+# Copyright (c) 1998 Sendmail, Inc. All rights reserved.
+# Copyright (c) 1983 Eric P. Allman. All rights reserved.
+# Copyright (c) 1988, 1993
+# The Regents of the University of California. All rights reserved.
+#
+# By using this file, you agree to the terms and conditions set
+# forth in the LICENSE file which can be found at the top level of
+# the sendmail distribution.
+#
+#
+# @(#)makeinfo.sh 8.11 (Berkeley) 5/19/98
+#
+
+usewhoami=0
+usehostname=0
+for p in `echo $PATH | sed 's/:/ /g'`
+do
+ if [ "x$p" = "x" ]
+ then
+ p="."
+ fi
+ if [ -f $p/whoami ]
+ then
+ usewhoami=1
+ if [ $usehostname -ne 0 ]
+ then
+ break;
+ fi
+ fi
+ if [ -f $p/hostname ]
+ then
+ usehostname=1
+ if [ $usewhoami -ne 0 ]
+ then
+ break;
+ fi
+ fi
+done
+if [ $usewhoami -ne 0 ]
+then
+ user=`whoami`
+else
+ user=$LOGNAME
+fi
+
+if [ $usehostname -ne 0 ]
+then
+ host=`hostname`
+else
+ host=`uname -n`
+fi
+echo '#####' built by $user@$host on `date`
+echo '#####' in `pwd` | sed 's/\/tmp_mnt//'
+echo '#####' using $1 as configuration include directory | sed 's/\/tmp_mnt//'
+echo "define(\`__HOST__', $host)dnl"