fix rbase for HP-UX; announce the various configuration variables
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Thu, 27 Apr 1995 02:24:21 +0000 (18:24 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Thu, 27 Apr 1995 02:24:21 +0000 (18:24 -0800)
SCCS-vsn: usr.sbin/sendmail/src/makesendmail 8.19

usr/src/usr.sbin/sendmail/src/makesendmail

index 9cd569e..792bca7 100644 (file)
@@ -6,7 +6,7 @@
 #
 # %sccs.include.redist.sh%
 #
 #
 # %sccs.include.redist.sh%
 #
-#       @(#)makesendmail       8.18 (Berkeley) %G%
+#       @(#)makesendmail       8.19 (Berkeley) %G%
 #
 
 #
 #
 
 #
@@ -42,7 +42,11 @@ in
 esac
 
 # tweak operating system release
 esac
 
 # tweak operating system release
-rbase=`echo $rel | sed 's/\..*//''`
+case $os
+in
+  HP-UX)       rbase=`echo $rel | sed -e 's/^[^.]*\.0*//' -e 's/\..*//'`;;
+  *)           rbase=`echo $rel | sed -e 's/\..*//'`
+esac
 
 # heuristic tweaks to clean up names
 if [ "$os" = "unix" ]
 
 # heuristic tweaks to clean up names
 if [ "$os" = "unix" ]
@@ -71,6 +75,8 @@ else
        sfx=".${SENDMAIL_SUFFIX}"
 fi
 
        sfx=".${SENDMAIL_SUFFIX}"
 fi
 
+echo "Making sendmail with os=$os, rel=$rel, rbase=$rbase, arch=$arch, sfx=$sfx"
+
 # now try to find a reasonable object directory
 if [ -r obj.$os.$rel.$arch$sfx ]; then
        obj=obj.$os.$rel.$arch$sfx
 # now try to find a reasonable object directory
 if [ -r obj.$os.$rel.$arch$sfx ]; then
        obj=obj.$os.$rel.$arch$sfx