Forwarded: Mon, 19 Jun 1995 11:35:18 -0700
Forwarded: "ckd@kei.com "
Delivery-Date: Wed, 14 Jun 1995 07:58:13 -0700
Return-Path: bind-workers-request@vix.com
Received: by gw.home.vix.com id AA01783; Wed, 14 Jun 95 07:53:26 -0700
Received: by gw.home.vix.com id AA01777; Wed, 14 Jun 95 07:53:08 -0700
Received: by vse.vse.cz id AA29003
  (5.67a8/IDA-1.5 for bind-workers@vix.com); Wed, 14 Jun 1995 16:45:00 +0200
Date: Wed, 14 Jun 1995 16:45:00 +0200
From: Eduard Vopicka <Eduard.Vopicka@vse.cz>
Message-Id: <199506141445.AA29003@vse.vse.cz>
Reply-To: Eduard Vopicka <Eduard.Vopicka@vse.cz>
X-Mailer: Mail User's Shell (7.2.5 10/14/92)
To: bind-workers@vix.com
Subject: improved awkfile patch for SunOS shared lib build
X-Charset: ASCII
X-Char-Esc: 29

Small problem while building shared C library with the new resolver on
SunOS 4.1.4. After SunOS 4.1.3 -> 4.1.4 upgrade, the following library
files were left in /usr/lib:
	libc.so.1.8		# From SunOS 4.1.3 
	libc.so.1.8.1		#     --- " ---    , with some patches
	libc.so.1.9		# Added by SunOS 4.1.4 upgrade
The filename generated by awkfile was libc.so.1.9.2 instead of the expected
libc.so.1.9.1. The patch included seems to fix this small problem.

Eduard Vopicka

*** awkfile.orig	Thu Oct 11 20:36:31 1990
--- awkfile	Mon Jun 12 14:33:24 1995
***************
*** 5,15 ****
  	CUSTOM = 0
  }
  
! 	{
! 		if ($3 > MAJOR)
  			MAJOR = $3
! 		if ($4 > MINOR)
  			MINOR = $4
  		if ($5 > CUSTOM)
  			CUSTOM = $5
  	}
--- 5,20 ----
  	CUSTOM = 0
  }
  
! NF >=4 && $5 != "FCS"	{
! 		if ($3 > MAJOR) {
  			MAJOR = $3
! 			MINOR = 0
! 			CUSTOM = 0
! 		}
! 		if ($4 > MINOR) {
  			MINOR = $4
+ 			CUSTOM = 0
+ 		}
  		if ($5 > CUSTOM)
  			CUSTOM = $5
  	}

-- 
"Eduard Vopicka, Computing Centre, Prague University of Economics,
W. Churchill Square 4, CZ 130 67 Prague 3" <Eduard.Vopicka@vse.cz>

