Print this page
XXXX don't ship bldenv and nightly


 722 #
 723 if [ -f /etc/nightly.conf ]; then
 724         . /etc/nightly.conf
 725 fi
 726 
 727 if [ -f $1 ]; then
 728         if [[ $1 = */* ]]; then
 729                 . $1
 730         else
 731                 . ./$1
 732         fi
 733 else
 734         if [ -f $OPTHOME/onbld/env/$1 ]; then
 735                 . $OPTHOME/onbld/env/$1
 736         else
 737                 echo "Cannot find env file as either $1 or $OPTHOME/onbld/env/$1"
 738                 exit 1
 739         fi
 740 fi
 741 
 742 # contents of stdenv.sh inserted after next line:
 743 # STDENV_START
 744 # STDENV_END
 745 
 746 # Check if we have sufficient data to continue...
 747 [[ -v CODEMGR_WS ]] || fatal_error "Error: Variable CODEMGR_WS not set."
 748 if  [[ "${NIGHTLY_OPTIONS}" == ~(F)n ]] ; then
 749         # Check if the gate data are valid if we don't do a "bringover" below
 750         [[ -d "${CODEMGR_WS}" ]] || \
 751                 fatal_error "Error: ${CODEMGR_WS} is not a directory."
 752         [[ -f "${CODEMGR_WS}/usr/src/Makefile" ]] || \
 753                 fatal_error "Error: ${CODEMGR_WS}/usr/src/Makefile not found."
 754 fi
 755 
 756 #
 757 # place ourselves in a new task, respecting BUILD_PROJECT if set.
 758 #
 759 if [ -z "$BUILD_PROJECT" ]; then
 760         /usr/bin/newtask -c $$
 761 else
 762         /usr/bin/newtask -c $$ -p $BUILD_PROJECT
 763 fi
 764 
 765 ps -o taskid= -p $$ | read build_taskid




 722 #
 723 if [ -f /etc/nightly.conf ]; then
 724         . /etc/nightly.conf
 725 fi
 726 
 727 if [ -f $1 ]; then
 728         if [[ $1 = */* ]]; then
 729                 . $1
 730         else
 731                 . ./$1
 732         fi
 733 else
 734         if [ -f $OPTHOME/onbld/env/$1 ]; then
 735                 . $OPTHOME/onbld/env/$1
 736         else
 737                 echo "Cannot find env file as either $1 or $OPTHOME/onbld/env/$1"
 738                 exit 1
 739         fi
 740 fi
 741 




 742 # Check if we have sufficient data to continue...
 743 [[ -v CODEMGR_WS ]] || fatal_error "Error: Variable CODEMGR_WS not set."
 744 if  [[ "${NIGHTLY_OPTIONS}" == ~(F)n ]] ; then
 745         # Check if the gate data are valid if we don't do a "bringover" below
 746         [[ -d "${CODEMGR_WS}" ]] || \
 747                 fatal_error "Error: ${CODEMGR_WS} is not a directory."
 748         [[ -f "${CODEMGR_WS}/usr/src/Makefile" ]] || \
 749                 fatal_error "Error: ${CODEMGR_WS}/usr/src/Makefile not found."
 750 fi
 751 
 752 #
 753 # place ourselves in a new task, respecting BUILD_PROJECT if set.
 754 #
 755 if [ -z "$BUILD_PROJECT" ]; then
 756         /usr/bin/newtask -c $$
 757 else
 758         /usr/bin/newtask -c $$ -p $BUILD_PROJECT
 759 fi
 760 
 761 ps -o taskid= -p $$ | read build_taskid