- Timestamp:
- 05/14/2006 11:35:23 PM (18 years ago)
- Branches:
- 1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- 0596057
- Parents:
- 5a733a4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
master.sh
r5a733a4 ra0f0bee 447 447 validate_config 448 448 echo "${SD_BORDER}${nl_}" 449 450 449 echo -n "Are you happy with these settings? yes/no (no): " 451 450 read ANSWER … … 456 455 echo "${nl_}${SD_BORDER}${nl_}" 457 456 458 # Load dadditional modules or configuration files based on global settings457 # Load additional modules or configuration files based on global settings 459 458 # compare module 460 459 if [[ "$COMPARE" = "1" ]]; then … … 471 470 [[ $? > 0 ]] && echo " optimize/optimize_functions did not load.." && exit 472 471 [[ $VERBOSITY > 0 ]] && echo "OK" 473 fi 474 # 475 # optimize configurations 476 if [[ "$OPTIMIZE" != "0" ]]; then 472 # 473 # optimize configurations 477 474 [[ $VERBOSITY > 0 ]] && echo -n "Loading optimization config..." 478 475 source optimize/opt_config 479 476 [[ $? > 0 ]] && echo " optimize/opt_config did not load.." && exit 480 477 [[ $VERBOSITY > 0 ]] && echo "OK" 481 fi 482 # 483 484 # Validate optimize settings, if required 485 [[ "$OPTIMIZE" != "0" ]] && validate_opt_settings 486 487 # Prevents setting "-d /" by mistake. 488 489 if [ $BUILDDIR = / ] ; then 490 echo -ne "\nThe root directory can't be used to build LFS.\n\n" 491 exit 1 492 fi 478 # Validate optimize settings, if required 479 validate_opt_settings 480 fi 481 # 493 482 494 483 # If $BUILDDIR has subdirectories like tools/ or bin/, stop the run 495 484 # and notify the user about that. 496 497 485 if [ -d $BUILDDIR/tools -o -d $BUILDDIR/bin ] && [ -z $CLEAN ] ; then 498 486 eval "$no_empty_builddir" … … 505 493 mkdir -p $JHALFSDIR 506 494 fi 507 495 # 496 # Create $BUILDDIR/sources even though it could be created by get_sources() 497 if [[ ! -d $BUILDDIR/sources ]]; then 498 mkdir -p $BUILDDIR/sources 499 fi 500 # 501 # Create the log directory 502 if [[ ! -d $LOGDIR ]]; then 503 mkdir $LOGDIR 504 fi 505 >$LOGDIR/$LOG 506 # 507 # 508 508 if [[ "$PWD" != "$JHALFSDIR" ]]; then 509 509 cp $COMMON_DIR/makefile-functions $JHALFSDIR/ … … 513 513 cp extras/* $JHALFSDIR/extras 514 514 fi 515 # 515 516 if [[ -n "$FILES" ]]; then 516 517 # pushd/popd necessary to deal with mulitiple files … … 519 520 popd 1> /dev/null 520 521 fi 522 # 521 523 if [[ "$PROGNAME" != "blfs" ]]; then 522 [[ "$REPORT" = "1" ]] && cp $COMMON_DIR/create-sbu_du-report.sh $JHALFSDIR/ 524 if [[ "$REPORT" = "1" ]]; then 525 cp $COMMON_DIR/create-sbu_du-report.sh $JHALFSDIR/ 526 # After be sure that all look sane and if REPORT=1, dump the settings to a file 527 # This file will be used to create the REPORT header 528 validate_config > $JHALFSDIR/jhalfs.config 529 fi 523 530 [[ "$GETPKG" = "1" ]] && cp $COMMON_DIR/urls.xsl $JHALFSDIR/ 524 531 fi 532 # 525 533 sed 's,FAKEDIR,'$BOOK',' $PACKAGE_DIR/$XSL > $JHALFSDIR/${XSL} 526 534 export XSL=$JHALFSDIR/${XSL} 527 535 fi 528 536 529 if [[ ! -d $LOGDIR ]]; then530 mkdir $LOGDIR531 fi532 533 # After be sure that all look sane and if REPORT=1, dump the settings to a file534 # This file will be used to create the REPORT header535 [[ "$PROGNAME" != "blfs" ]] && [[ "$REPORT" = "1" ]] && validate_config > $JHALFSDIR/jhalfs.config536 537 >$LOGDIR/$LOG538 537 539 538 get_book 540 539 echo "${SD_BORDER}${nl_}" 541 540 542 # If $BUILDDIR/sources hasn't been created yet at this point, create it.543 [[ ! -d $BUILDDIR/sources ]] && mkdir $BUILDDIR/sources544 541 545 542 build_Makefile
Note:
See TracChangeset
for help on using the changeset viewer.