61 lines
1.5 KiB
Bash
61 lines
1.5 KiB
Bash
#!/bin/ksh
|
|
# @(#)35 1.1 src/bldscripts/SetNotBuiltShipFiles, ade_build, bos41J, 9509A_all 2/17/95 13:36:30
|
|
#
|
|
# COMPONENT_NAME: bldtools
|
|
#
|
|
# FUNCTIONS: none
|
|
#
|
|
# ORIGINS: 27
|
|
#
|
|
#
|
|
# (C) COPYRIGHT International Business Machines Corp. 1995
|
|
# All Rights Reserved
|
|
# Licensed Materials - Property of IBM
|
|
# US Government Users Restricted Rights - Use, duplication or
|
|
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
|
|
#
|
|
# syntax: $0
|
|
# The $BLDCYCLE variable must be set in the environment.
|
|
trap : 1
|
|
export PAGERID=packager
|
|
export PAGERSEVERITY=3
|
|
alias dataman=`whence dataman`
|
|
|
|
trap 'dataman -s leveldata[$BLDCYCLE][status][$cmd]=FAILED; exit 1' ERR
|
|
|
|
if [ "$BLDCYCLE" = "" ]
|
|
then
|
|
echo "The BLDCYCLE variable must be set and exported!"
|
|
exit 1
|
|
fi
|
|
|
|
typeset DBGLEVEL=1
|
|
eval ${DEBUGX}
|
|
|
|
typeset -r cmd=$(basename $0)
|
|
typeset -r lmupdates=/tmp/$cmd.lmupdates.$$
|
|
typeset -r xreqships=/tmp/$cmd.xreqships.$$
|
|
|
|
dataman -s leveldata[$BLDCYCLE][status][$cmd]=RUNNING
|
|
dataman -q leveldata[$BLDCYCLE][xreqshipped] >$xreqships
|
|
dataman -q leveldata[$BLDCYCLE][lmupdatelist] >$lmupdates
|
|
|
|
# set notbuiltshipfiles to files that xreq expected to ship that don't
|
|
# show up in the lmupdatelist.
|
|
comm -1 -3 $lmupdates $xreqships |
|
|
while read file fileset
|
|
do
|
|
if [[ "$file" = *liblpp.a ]]
|
|
then
|
|
grep $fileset $xreqships | wc -l | read fscnt
|
|
if (( fscnt == 1 ))
|
|
then
|
|
print "$file $fileset"
|
|
fi
|
|
else
|
|
print "$file $fileset"
|
|
fi
|
|
done |
|
|
dataman -s leveldata[$BLDCYCLE][notbuiltshipfiles]
|
|
dataman -s leveldata[$BLDCYCLE][status][$cmd]=COMPLETE
|