Changeset 2c2471d


Ignore:
Timestamp:
05/06/2006 10:35:19 AM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
53bc10b
Parents:
fb6b1c5
Message:

Added optimize/optimize_functions.

Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • common/common-functions

    rfb6b1c5 r2c2471d  
    285285) >> $MKFILE.tmp
    286286
    287 }
    288 
    289 
    290 #----------------------------------#
    291 wrt_optimize() {                   # Apply pkg specific opt's to build
    292 #----------------------------------#
    293   local pkg=$1
    294   local optLvl optVal OPT_VAR
    295 
    296   optLvl=`awk -v pkg="$pkg" '$1 == pkg { print $2 }' $JHALFSDIR/opt_override`
    297   if [[ "$optLvl" = "" ]] ; then
    298     optLvl=$DEF_OPT_LVL;
    299   fi
    300 
    301   for OPT_VAR in $ACTIVE_OPT_VARS ; do
    302     eval optVal=\$${OPT_VAR}_$optLvl
    303 
    304     if [[ "$optVal" != "unset" ]]; then
    305 (
    306 cat << EOF
    307         @echo "export $OPT_VAR=\"$optVal\"" >> envars
    308 EOF
    309 ) >> $MKFILE.tmp
    310     else
    311       continue
    312     fi
    313   done
    314287}
    315288
  • master.sh

    rfb6b1c5 r2c2471d  
    465465fi
    466466#
     467# optimize module
     468if [[ "$OPTIMIZE" != "0" ]]; then
     469  [[ $VERBOSITY > 0 ]] && echo -n "Loading optimization module..."
     470  source optimize/optimize_functions
     471  [[ $? > 0 ]] && echo " optimize/optimize_functions did not load.." && exit
     472  [[ $VERBOSITY > 0 ]] && echo "OK"
     473fi
     474#
    467475# optimize configurations
    468476if [[ "$OPTIMIZE" != "0" ]]; then
Note: See TracChangeset for help on using the changeset viewer.