Changeset 1b65a84 for master.sh


Ignore:
Timestamp:
05/11/2006 08:21:14 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
f3ae556
Parents:
0910f55
Message:

Merged optimize code from experimental branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • master.sh

    r0910f55 r1b65a84  
    148148    --help | -h )  usage | more && exit  ;;
    149149
     150    --optimize | -O )
     151      test $# = 1 && eval "$exit_missing_arg"
     152      shift
     153      case $1 in
     154        0 | 1 | 2 )
     155          OPTIMIZE=$1
     156          ;;
     157        * )
     158          echo -e "\n$1 isn't a valid optimize level value."
     159          echo -e "You must use 0, 1, or 2.\n"
     160          exit 1
     161          ;;
     162      esac
     163      ;;
     164
    150165    --testsuites | -T )
    151166      test $# = 1 && eval "$exit_missing_arg"
     
    449464  [[ $VERBOSITY > 0 ]] && echo "OK"
    450465fi
     466#
     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#
     475# optimize configurations
     476if [[ "$OPTIMIZE" != "0" ]]; then
     477  [[ $VERBOSITY > 0 ]] && echo -n "Loading optimization config..."
     478  source optimize/opt_config
     479  [[ $? > 0 ]] && echo " optimize/opt_config did not load.." && exit
     480  [[ $VERBOSITY > 0 ]] && echo "OK"
     481fi
     482#
     483
     484# Validate optimize settings, if required
     485[[ "$OPTIMIZE" != "0" ]] && validate_opt_settings
    451486
    452487# Prevents setting "-d /" by mistake.
     
    473508if [[ "$PWD" != "$JHALFSDIR" ]]; then
    474509  cp $COMMON_DIR/makefile-functions $JHALFSDIR/
     510  [[ "$OPTIMIZE" != "0" ]] && cp optimize/opt_override $JHALFSDIR/
    475511  if [[ "$COMPARE" != "0" ]] ; then
    476512    mkdir -p $JHALFSDIR/extras
Note: See TracChangeset for help on using the changeset viewer.