Print this page
6339 env file could figure out CODEMGR_WS automatically

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/env/illumos.sh
          +++ new/usr/src/tools/env/illumos.sh
↓ open down ↓ 39 lines elided ↑ open up ↑
  40   40  #       checks for changes in ELF runpaths (-r)
  41   41  #       build and use this workspace's tools in $SRC/tools (-t)
  42   42  #
  43   43  # - This file is sourced by "bldenv.sh" and "nightly.sh" and should not 
  44   44  #   be executed directly.
  45   45  # - This script is only interpreted by ksh93 and explicitly allows the
  46   46  #   use of ksh93 language extensions.
  47   47  #
  48   48  export NIGHTLY_OPTIONS='-FnCDAlmprt'
  49   49  
  50      -#
  51      -# -- PLEASE READ THIS --
  52      -#
  53      -# The variables  GATE and CODEMGR_WS must always be customised to
  54      -# match your workspace/gate location!!
  55      -#
  56      -# -- PLEASE READ THIS --
  57      -#
  58      -
  59      -# This is a variable for the rest of the script - GATE doesn't matter to
  60      -# nightly itself
  61      -export GATE='testws'
  62      -
  63      -# CODEMGR_WS - where is your workspace at (or what should nightly name it)
  64      -export CODEMGR_WS="$HOME/ws/$GATE"
       50 +# CODEMGR_WS - where is your workspace at
       51 +#export CODEMGR_WS="$HOME/ws/illumos-gate"
       52 +export CODEMGR_WS="`git rev-parse --show-toplevel`"
  65   53  
  66   54  # Maximum number of dmake jobs.  The recommended number is 2 + NCPUS,
  67   55  # where NCPUS is the number of logical CPUs on your build system.
  68   56  function maxjobs
  69   57  {
  70   58          nameref maxjobs=$1
  71   59          integer ncpu
  72   60          integer -r min_mem_per_job=512 # minimum amount of memory for a job
  73   61  
  74   62          ncpu=$(builtin getconf ; getconf 'NPROCESSORS_ONLN')
↓ open down ↓ 78 lines elided ↑ open up ↑
 153  141  export ROOT="$CODEMGR_WS/proto/root_${MACH}"
 154  142  export SRC="$CODEMGR_WS/usr/src"
 155  143  export MULTI_PROTO="no"
 156  144  
 157  145  #
 158  146  #       build environment variables, including version info for mcs, motd,
 159  147  # motd, uname and boot messages. Mostly you shouldn't change this except
 160  148  # when the release slips (nah) or you move an environment file to a new
 161  149  # release
 162  150  #
 163      -export VERSION="$GATE"
      151 +export VERSION="`git describe --long --all HEAD | cut -d/ -f2-`"
 164  152  
 165  153  #
 166  154  # the RELEASE and RELEASE_DATE variables are set in Makefile.master;
 167  155  # there might be special reasons to override them here, but that
 168  156  # should not be the case in general
 169  157  #
 170  158  # export RELEASE='5.11'
 171  159  # export RELEASE_DATE='October 2007'
 172  160  
 173  161  # proto area in parent for optionally depositing a copy of headers and
↓ open down ↓ 67 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX