1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
  
     | 
    
      #!/usr/local/bin/tcsh
#
#################################################################
#								#
# Copyright (c) 2004-2019 Fidelity National Information		#
# Services, Inc. and/or its subsidiaries. All rights reserved.	#
#								#
#	This source code contains the intellectual property	#
#	of its copyright holder(s), and is made available	#
#	under a license.  If you do not know the terms of	#
#	the license, please stop and do not read further.	#
#								#
#################################################################
#
##################################################################
#
#	buildwarn.csh - Filter out all the warnings from the build logs
#
#	Argument:
#		$1 -	version number
#		$2 -	image type (b[ta], d[bg], or p[ro])
#
##################################################################
set buildwarn_status = 0
if ( $1 == "" ) then
	@ buildwarn_status++;
endif
if ( $2 == "" ) then
	@ buildwarn_status++;
endif
switch ($2)
	case "[bB]*":
		set image = "bta"
		breaksw
	case "[dD]*":
		set image = "dbg"
		breaksw
	case "[pP]*":
		set image = "pro"
		breaksw
	default:
		set image = ""
		@ buildwarn_status++;
		breaksw
endsw
if (! -e $gtm_root/$1/$image) then
	@ buildwarn_status++;
endif
if ( $buildwarn_status != 0 ) then
	echo "buildwarn-E-needp12, Usage: $gtm_tools/buildwarn.csh <version> <image type>"
	exit $buildwarn_status
endif
set setactive_parms = ( $1 $2 ) ; source $gtm_tools/setactive.csh
pushd $gtm_ver/log
if (! -e comlist.$image.log) then
	echo "buildwarn-E-lognotexist, $gtm_ver/log/comlist.$image.log does not exist. Exiting..."
	exit -1
endif
# Generate warning file
set buildlog = comlist.$image.log
set warnlog  = warn.$image.log
awk -v gtm_src="$gtm_src" -f $gtm_tools/buildwarn.awk $buildlog > $warnlog
exit $status
 
     |