Print this page
4027 remove CLOSED_BUILD


 876         echo "PATH=${PATH}" >> $LOGFILE
 877         echo "ONBLD_TOOLS=${ONBLD_TOOLS}" >> $LOGFILE
 878 }
 879 
 880 function staffer {
 881         if [ $ISUSER -ne 0 ]; then
 882                 "$@"
 883         else
 884                 arg="\"$1\""
 885                 shift
 886                 for i
 887                 do
 888                         arg="$arg \"$i\""
 889                 done
 890                 eval su $STAFFER -c \'$arg\'
 891         fi
 892 }
 893 
 894 #
 895 # Verify that the closed tree is present if it needs to be.
 896 # Sets CLOSED_IS_PRESENT for future use.
 897 #
 898 function check_closed_tree {
 899         if [ -z "$CLOSED_IS_PRESENT" ]; then
 900                 if [ -d $CODEMGR_WS/usr/closed ]; then
 901                         CLOSED_IS_PRESENT="yes"
 902                 else
 903                         CLOSED_IS_PRESENT="no"
 904                 fi
 905                 export CLOSED_IS_PRESENT
 906         fi
 907         if [[ "$CLOSED_IS_PRESENT" = no && ! -d "$ON_CLOSED_BINS" ]]; then
 908                 #
 909                 # If it's an old (pre-split) tree or an empty
 910                 # workspace, don't complain.
 911                 #
 912                 if grep -s CLOSED_BUILD $SRC/Makefile.master > /dev/null; then
 913                         echo "If the closed sources are not present," \
 914                             "ON_CLOSED_BINS"
 915                         echo "must point to the closed binaries tree."
 916                         build_ok=n
 917                         exit 1
 918                 fi
 919         fi
 920 }
 921 
 922 function obsolete_build {
 923         echo "WARNING: Obsolete $1 build requested; request will be ignored"
 924 }
 925 
 926 #
 927 # wrapper over wsdiff.
 928 # usage: do_wsdiff LABEL OLDPROTO NEWPROTO
 929 #
 930 function do_wsdiff {
 931         label=$1
 932         oldproto=$2
 933         newproto=$3
 934 
 935         wsdiff="wsdiff"
 936         [ "$t_FLAG" = y ] && wsdiff="wsdiff -t"
 937 
 938         echo "\n==== Getting object changes since last build at `date`" \
 939             "($label) ====\n" | tee -a $LOGFILE >> $mail_msg_file




 876         echo "PATH=${PATH}" >> $LOGFILE
 877         echo "ONBLD_TOOLS=${ONBLD_TOOLS}" >> $LOGFILE
 878 }
 879 
 880 function staffer {
 881         if [ $ISUSER -ne 0 ]; then
 882                 "$@"
 883         else
 884                 arg="\"$1\""
 885                 shift
 886                 for i
 887                 do
 888                         arg="$arg \"$i\""
 889                 done
 890                 eval su $STAFFER -c \'$arg\'
 891         fi
 892 }
 893 
 894 #
 895 # Verify that the closed tree is present if it needs to be.

 896 #
 897 function check_closed_tree {
 898         if [[ ! -d "$ON_CLOSED_BINS" ]]; then













 899                 echo "If the closed sources are not present," \
 900                     "ON_CLOSED_BINS"
 901                 echo "must point to the closed binaries tree."
 902                 build_ok=n
 903                 exit 1
 904         fi

 905 }
 906 
 907 function obsolete_build {
 908         echo "WARNING: Obsolete $1 build requested; request will be ignored"
 909 }
 910 
 911 #
 912 # wrapper over wsdiff.
 913 # usage: do_wsdiff LABEL OLDPROTO NEWPROTO
 914 #
 915 function do_wsdiff {
 916         label=$1
 917         oldproto=$2
 918         newproto=$3
 919 
 920         wsdiff="wsdiff"
 921         [ "$t_FLAG" = y ] && wsdiff="wsdiff -t"
 922 
 923         echo "\n==== Getting object changes since last build at `date`" \
 924             "($label) ====\n" | tee -a $LOGFILE >> $mail_msg_file