Print this page
11626 introduce /etc/versions/build
11627 clean up UUID code for ::status


 118 #       -DDEFAULT_ANSI_BACKGROUND=ANSI_COLOR_WHITE"
 119 #
 120 #export DEBUG_CONSOLE_COLOR="-DDEFAULT_ANSI_FOREGROUND=ANSI_COLOR_RED \
 121 #       -DDEFAULT_ANSI_BACKGROUND=ANSI_COLOR_WHITE"
 122 #
 123 # or just one for any build type:
 124 #
 125 #export DEFAULT_CONSOLE_COLOR="-DDEFAULT_ANSI_FOREGROUND=ANSI_COLOR_BLACK \
 126 #       -DDEFAULT_ANSI_BACKGROUND=ANSI_COLOR_WHITE"
 127 
 128 # Set if your distribution has different package versioning
 129 #export PKGVERS_BRANCH=2018.0.0.17900
 130 
 131 # Skip Java 8 builds on distributions that don't support it
 132 #export BLD_JAVA_8=
 133 
 134 # POST_NIGHTLY can be any command to be run at the end of nightly.  See
 135 # nightly(1) for interactions between environment variables and this command.
 136 #POST_NIGHTLY=
 137 



 138 # -----------------------------------------------------------------------------
 139 # You are less likely to need to modify parameters below.
 140 # -----------------------------------------------------------------------------
 141 
 142 # Maximum number of dmake jobs.  The recommended number is 2 + NCPUS,
 143 # where NCPUS is the number of logical CPUs on your build system.
 144 function maxjobs
 145 {
 146         nameref maxjobs=$1
 147         integer ncpu
 148         integer -r min_mem_per_job=512 # minimum amount of memory for a job
 149 
 150         ncpu=$(builtin getconf ; getconf 'NPROCESSORS_ONLN')
 151         (( maxjobs=ncpu + 2 ))
 152 
 153         # Throttle number of parallel jobs launched by dmake to a value which
 154         # gurantees that all jobs have enough memory. This was added to avoid
 155         # excessive paging/swapping in cases of virtual machine installations
 156         # which have lots of CPUs but not enough memory assigned to handle
 157         # that many parallel jobs




 118 #       -DDEFAULT_ANSI_BACKGROUND=ANSI_COLOR_WHITE"
 119 #
 120 #export DEBUG_CONSOLE_COLOR="-DDEFAULT_ANSI_FOREGROUND=ANSI_COLOR_RED \
 121 #       -DDEFAULT_ANSI_BACKGROUND=ANSI_COLOR_WHITE"
 122 #
 123 # or just one for any build type:
 124 #
 125 #export DEFAULT_CONSOLE_COLOR="-DDEFAULT_ANSI_FOREGROUND=ANSI_COLOR_BLACK \
 126 #       -DDEFAULT_ANSI_BACKGROUND=ANSI_COLOR_WHITE"
 127 
 128 # Set if your distribution has different package versioning
 129 #export PKGVERS_BRANCH=2018.0.0.17900
 130 
 131 # Skip Java 8 builds on distributions that don't support it
 132 #export BLD_JAVA_8=
 133 
 134 # POST_NIGHTLY can be any command to be run at the end of nightly.  See
 135 # nightly(1) for interactions between environment variables and this command.
 136 #POST_NIGHTLY=
 137 
 138 # Populates /etc/versions/build on each nightly run
 139 export BUILDVERSION_EXEC="git describe --all --long --dirty"
 140 
 141 # -----------------------------------------------------------------------------
 142 # You are less likely to need to modify parameters below.
 143 # -----------------------------------------------------------------------------
 144 
 145 # Maximum number of dmake jobs.  The recommended number is 2 + NCPUS,
 146 # where NCPUS is the number of logical CPUs on your build system.
 147 function maxjobs
 148 {
 149         nameref maxjobs=$1
 150         integer ncpu
 151         integer -r min_mem_per_job=512 # minimum amount of memory for a job
 152 
 153         ncpu=$(builtin getconf ; getconf 'NPROCESSORS_ONLN')
 154         (( maxjobs=ncpu + 2 ))
 155 
 156         # Throttle number of parallel jobs launched by dmake to a value which
 157         # gurantees that all jobs have enough memory. This was added to avoid
 158         # excessive paging/swapping in cases of virtual machine installations
 159         # which have lots of CPUs but not enough memory assigned to handle
 160         # that many parallel jobs