Print this page
XXX Remove nawk(1)
*** 1836,1846 ****
[ -d $ldir ] || newdir $ldir || exit 1
eval $lockvar=$lockf
while ! staffer ln -s $hostname.$STAFFER.$$ $lockf 2> /dev/null; do
basews=`basename $CODEMGR_WS`
! ls -l $lockf | nawk '{print $NF}' | IFS=. read host user pid
if [ "$host" != "$hostname" ]; then
echo "$MACH build of $basews apparently" \
"already started by $user on $host as $pid."
exit 1
elif kill -s 0 $pid 2>/dev/null; then
--- 1836,1846 ----
[ -d $ldir ] || newdir $ldir || exit 1
eval $lockvar=$lockf
while ! staffer ln -s $hostname.$STAFFER.$$ $lockf 2> /dev/null; do
basews=`basename $CODEMGR_WS`
! ls -l $lockf | /usr/xpg4/bin/awk '{print $NF}' | IFS=. read host user pid
if [ "$host" != "$hostname" ]; then
echo "$MACH build of $basews apparently" \
"already started by $user on $host as $pid."
exit 1
elif kill -s 0 $pid 2>/dev/null; then
*** 2436,2446 ****
staffer svn checkout $BRINGOVER_WS $CODEMGR_WS ||
touch $TMPDIR/bringover_failed
else
typeset root
root=$(staffer svn info $CODEMGR_WS |
! nawk '/^Repository Root:/ {print $NF}')
if [[ $root != $BRINGOVER_WS ]]; then
# We fail here because there's no way to update
# from a named repo.
cat <<-EOF
\$BRINGOVER_WS doesn't match repository root:
--- 2436,2446 ----
staffer svn checkout $BRINGOVER_WS $CODEMGR_WS ||
touch $TMPDIR/bringover_failed
else
typeset root
root=$(staffer svn info $CODEMGR_WS |
! /usr/xpg4/bin/awk '/^Repository Root:/ {print $NF}')
if [[ $root != $BRINGOVER_WS ]]; then
# We fail here because there's no way to update
# from a named repo.
cat <<-EOF
\$BRINGOVER_WS doesn't match repository root:
*** 2777,2787 ****
# Use the presence of the first file entry of the cached
# IHV proto list in the reference list to determine
# whether it was built with -X or not.
#
IHV_REF_PROTO_LIST=$SRC/pkg/proto_list_ihv_$MACH
! grepfor=$(nawk '$1 == "f" { print $2; exit }' \
$IHV_REF_PROTO_LIST 2> /dev/null)
if [ $? = 0 -a -n "$grepfor" ]; then
if [ "$X_FLAG" = "y" ]; then
grep -w "$grepfor" \
$REF_PROTO_LIST > /dev/null
--- 2777,2787 ----
# Use the presence of the first file entry of the cached
# IHV proto list in the reference list to determine
# whether it was built with -X or not.
#
IHV_REF_PROTO_LIST=$SRC/pkg/proto_list_ihv_$MACH
! grepfor=$(/usr/xpg4/bin/awk '$1 == "f" { print $2; exit }' \
$IHV_REF_PROTO_LIST 2> /dev/null)
if [ $? = 0 -a -n "$grepfor" ]; then
if [ "$X_FLAG" = "y" ]; then
grep -w "$grepfor" \
$REF_PROTO_LIST > /dev/null