SCCS-vsn: usr.sbin/sendmail/src/makesendmail 8.8
#
# %sccs.include.redist.sh%
#
#
# %sccs.include.redist.sh%
#
-# @(#)makesendmail 8.7 (Berkeley) %G%
+# @(#)makesendmail 8.8 (Berkeley) %G%
# determine operating system type
os=`uname -s`
# determine operating system type
os=`uname -s`
+case $os
+in
+ DYNIX/ptx) os=PTX;;
+esac
# determine operating system release
rel=`uname -r`
rbase=`echo $rel | sed 's/\..*//''`
# determine operating system release
rel=`uname -r`
rbase=`echo $rel | sed 's/\..*//''`
+# heuristic tweaks to clean up names
+if [ -r /unix -a -r /usr/lib/libseq.a -a -r /lib/cpp ]
+then
+ # might be a DYNIX/ptx 2.x system, which has a broken uname
+ if strings /lib/cpp | grep _SEQUENT_ > /dev/null
+ then
+ os=PTX
+ fi
+fi
+
# now try to find a reasonable object directory
if [ -r obj.$os.$arch.$rel ]; then
obj=obj.$os.$arch.$rel
# now try to find a reasonable object directory
if [ -r obj.$os.$arch.$rel ]; then
obj=obj.$os.$arch.$rel
fi
echo "Making in $obj"
cd $obj
fi
echo "Making in $obj"
cd $obj