- Timestamp:
- 08/12/2006 07:59:11 PM (18 years ago)
- Branches:
- experimental
- Children:
- 3fa20d4
- Parents:
- 54f4782
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
master.sh
r54f4782 r47fddc8 47 47 VERBOSITY=0 48 48 49 [[ $VERBOSITY > 0 ]] && echo -n "Loading common-functions module..."50 source $COMMON_DIR/common-functions51 [[ $? > 0 ]] && echo " $COMMON_DIR/common-functions did not load.." && exit52 [[ $VERBOSITY > 0 ]] && echo "OK"53 #54 [[ $VERBOSITY > 0 ]] && echo -n "Loading masterscript conf..."55 source $COMMON_DIR/config56 [[ $? > 0 ]] && echo "$COMMON_DIR/conf did not load.." && exit57 [[ $VERBOSITY > 0 ]] && echo "OK"58 #59 [[ $VERBOSITY > 0 ]] && echo -n "Loading config module <$MODULE_CONFIG>..."60 source $MODULE_CONFIG61 [[ $? > 0 ]] && echo "$MODULE_CONFIG did not load.." && exit 162 [[ $VERBOSITY > 0 ]] && echo "OK"63 #64 [[ $VERBOSITY > 0 ]] && echo -n "Loading code module <$MODULE>..."65 source $MODULE66 [[ $? > 0 ]] && echo "$MODULE did not load.." && exit 267 [[ $VERBOSITY > 0 ]] && echo "OK"68 #69 [[ $VERBOSITY > 0 ]] && echo "${SD_BORDER}${nl_}"70 49 71 50 if [[ -e using_menuconfig ]]; then … … 85 64 #--- farce report log directory 86 65 FARCELOGDIR=$LOGDIR/farce 87 66 XSL=$PROGNAME.xsl 67 68 case $PROGNAME in 69 clfs2) LFSVRS=development; TREE=branches/clfs-2.0/BOOK ;; 70 *) LFSVRS=development; TREE=trunk/BOOK ;; 71 esac 72 88 73 if [[ ! -z ${BRANCH_ID} ]]; then 89 74 case $BRANCH_ID in … … 113 98 esac 114 99 fi 115 fi 100 # These are boolean vars generated from Config.in. 101 # ISSUE: If a boolean parameter is not set <true> that 102 # variable is not defined by the menu app. This can 103 # cause a headache if you are not careful. 104 # The following parameters MUST be created and have a 105 # default value. 106 RUNMAKE=${RUNMAKE:-n} 107 GETPKG=${GETPKG:-n} 108 GETKERNEL=${GETKERNEL:-n} 109 COMPARE=${COMPARE:-n} 110 RUN_FARCE=${RUN_FARCE:-n} 111 RUN_ICA=${RUN_ICA:-n} 112 BOMB_TEST=${BOMB_TEST:-n} 113 STRIP=${STRIP:=n} 114 REPORT=${REPORT:=n} 115 VIMLANG=${VIMLANG:-n} 116 KEYMAP=${KEYMAP:=none} 117 GRSECURITY_HOST=${GRSECURITY_HOST:-n} 118 119 else 120 # 121 [[ $VERBOSITY > 0 ]] && echo -n "Loading masterscript conf..." 122 source $COMMON_DIR/config 123 [[ $? > 0 ]] && echo "$COMMON_DIR/conf did not load.." && exit 124 [[ $VERBOSITY > 0 ]] && echo "OK" 125 # 126 [[ $VERBOSITY > 0 ]] && echo -n "Loading config module <$MODULE_CONFIG>..." 127 source $MODULE_CONFIG 128 [[ $? > 0 ]] && echo "$MODULE_CONFIG did not load.." && exit 1 129 [[ $VERBOSITY > 0 ]] && echo "OK" 130 # 131 fi 132 133 134 [[ $VERBOSITY > 0 ]] && echo -n "Loading common-functions module..." 135 source $COMMON_DIR/common-functions 136 [[ $? > 0 ]] && echo " $COMMON_DIR/common-functions did not load.." && exit 137 [[ $VERBOSITY > 0 ]] && echo "OK" 138 [[ $VERBOSITY > 0 ]] && echo -n "Loading code module <$MODULE>..." 139 source $MODULE 140 [[ $? > 0 ]] && echo "$MODULE did not load.." && exit 2 141 [[ $VERBOSITY > 0 ]] && echo "OK" 142 # 143 [[ $VERBOSITY > 0 ]] && echo "${SD_BORDER}${nl_}" 144 116 145 117 146 #=========================================================== … … 191 220 ;; 192 221 193 --get-packages | -G ) GETPKG= 1;;222 --get-packages | -G ) GETPKG=y ;; 194 223 195 224 --help | -h ) usage | more && exit ;; … … 268 297 shift 269 298 case $1 in 270 ICA) RUN_ICA=1 271 RUN_FARCE=0 272 COMPARE=1 273 ;; 274 farce) RUN_ICA=0 275 RUN_FARCE=1 276 COMPARE=1 277 ;; 278 both) RUN_ICA=1 279 RUN_FARCE=1 280 COMPARE=1 281 ;; 299 ICA) RUN_ICA=y; RUN_FARCE=n; COMPARE=y ;; 300 farce) RUN_ICA=n; RUN_FARCE=y; COMPARE=y ;; 301 both) RUN_ICA=y; RUN_FARCE=y; COMPARE=y ;; 282 302 *) 283 303 echo -e "\n$1 is an unknown analysis method." … … 317 337 test $# = 1 && eval "$exit_missing_arg" 318 338 shift 319 case $1 in 320 arm ) 321 ARCH=arm 322 TARGET="arm-unknown-linux-gnu" 323 ;; 324 x86 ) 325 ARCH=x86 326 TARGET="i686-pc-linux-gnu" 327 ;; 328 i486 ) 329 ARCH=x86 330 TARGET="i486-pc-linux-gnu" 331 ;; 332 i586 ) 333 ARCH=x86 334 TARGET="i586-pc-linux-gnu" 335 ;; 336 ppc ) 337 ARCH=ppc 338 TARGET="powerpc-unknown-linux-gnu" 339 ;; 340 mips ) 341 ARCH=mips 342 TARGET="mips-unknown-linux-gnu" 343 ;; 344 mipsel ) 345 ARCH=mips 346 TARGET="mipsel-unknown-linux-gnu" 347 ;; 348 sparc ) 349 ARCH=sparc 350 TARGET="sparcv9-unknown-linux-gnu" 351 ;; 352 x86_64-64 ) 353 ARCH=x86_64-64 354 TARGET="x86_64-unknown-linux-gnu" 355 ;; 356 mips64-64 ) 357 ARCH=mips64-64 358 TARGET="mips-unknown-linux-gnu" 359 ;; 360 mipsel64-64 ) 361 ARCH=mips64-64 362 TARGET="mipsel-unknown-linux-gnu" 363 ;; 364 sparc64-64 ) 365 ARCH=sparc64-64 366 TARGET="sparc64-unknown-linux-gnu" 367 ;; 368 alpha ) 369 ARCH=alpha 370 TARGET="alpha-unknown-linux-gnu" 371 ;; 372 x86_64 ) 373 ARCH=x86_64 374 TARGET="x86_64-unknown-linux-gnu" 375 TARGET32="i686-pc-linux-gnu" 376 ;; 377 mips64 ) 378 ARCH=mips64 379 TARGET="mips-unknown-linux-gnu" 380 TARGET32="mips-unknown-linux-gnu" 381 ;; 382 mipsel64 ) 383 ARCH=mips64 384 TARGET="mipsel-unknown-linux-gnu" 385 TARGET32="mipsel-unknown-linux-gnu" 386 ;; 387 sparc64 ) 388 ARCH=sparc64 389 TARGET="sparc64-unknown-linux-gnu" 390 TARGET32="sparcv9-unknown-linux-gnu" 391 ;; 392 ppc64 ) 393 ARCH=ppc64 394 TARGET="powerpc64-unknown-linux-gnu" 395 TARGET32="powerpc-unknown-linux-gnu" 396 ;; 397 * ) 398 echo -e "\n$1 is an unknown or unsupported arch." 399 exit 1 400 ;; 339 case $PROGNAME in 340 CLFS2) 341 case $1 in 342 arm) ARCH=arm; TARGET="arm-unknown-linux-gnu" ;; 343 x86) ARCH=x86; TARGET="i686-pc-linux-gnu" ;; 344 *) echo -e "\n$1 is an unknown or unsupported arch."; exit 1 345 esac 346 ;; 347 CLFS) 348 case $1 in 349 arm ) ARCH=arm; TARGET="arm-unknown-linux-gnu" ;; 350 x86 ) ARCH=x86; TARGET="i686-pc-linux-gnu" ;; 351 i486 ) ARCH=x86; TARGET="i486-pc-linux-gnu" ;; 352 i586 ) ARCH=x86; TARGET="i586-pc-linux-gnu" ;; 353 ppc ) ARCH=ppc; TARGET="powerpc-unknown-linux-gnu" ;; 354 mips ) ARCH=mips; TARGET="mips-unknown-linux-gnu" ;; 355 mipsel ) ARCH=mips; TARGET="mipsel-unknown-linux-gnu" ;; 356 sparc ) ARCH=sparc; TARGET="sparcv9-unknown-linux-gnu" ;; 357 358 x86_64-64 ) ARCH=x86_64-64; TARGET="x86_64-unknown-linux-gnu" ;; 359 mips64-64 ) ARCH=mips64-64; TARGET="mips-unknown-linux-gnu" ;; 360 mipsel64-64 ) ARCH=mips64-64; TARGET="mipsel-unknown-linux-gnu" ;; 361 sparc64-64 ) ARCH=sparc64-64; TARGET="sparc64-unknown-linux-gnu" ;; 362 alpha ) ARCH=alpha; TARGET="alpha-unknown-linux-gnu" ;; 363 364 x86_64 ) ARCH=x86_64; TARGET="x86_64-unknown-linux-gnu"; TARGET32="i686-pc-linux-gnu" ;; 365 mips64 ) ARCH=mips64; TARGET="mips-unknown-linux-gnu"; TARGET32="mips-unknown-linux-gnu" ;; 366 mipsel64 ) ARCH=mips64; TARGET="mipsel-unknown-linux-gnu"; TARGET32="mipsel-unknown-linux-gnu" ;; 367 sparc64 ) ARCH=sparc64; TARGET="sparc64-unknown-linux-gnu"; TARGET32="sparcv9-unknown-linux-gnu" ;; 368 ppc64 ) ARCH=ppc64; TARGET="powerpc64-unknown-linux-gnu"; TARGET32="powerpc-unknown-linux-gnu" ;; 369 370 * ) echo -e "\n$1 is an unknown or unsupported arch."; exit 1 ;; 371 esac 372 ;; 401 373 esac 402 374 ;; … … 447 419 shift 448 420 done 421 449 422 450 423 #=================================================== … … 461 434 462 435 463 # Check for minimum gcc and kernel versions 464 #check_requirements 1 # 0/1 0-do not display values. 436 # Check for minimum bash,tar,gcc and kernel versions 465 437 echo 466 438 check_version "2.6.2" "`uname -r`" "KERNEL" … … 483 455 # Load additional modules or configuration files based on global settings 484 456 # compare module 485 if [[ "$COMPARE" = " 1" ]]; then457 if [[ "$COMPARE" = "y" ]]; then 486 458 [[ $VERBOSITY > 0 ]] && echo -n "Loading compare module..." 487 459 source $COMMON_DIR/func_compare.sh … … 538 510 [[ "$OPTIMIZE" != "0" ]] && cp optimize/opt_override $JHALFSDIR/ 539 511 # 540 if [[ "$COMPARE" != "0" ]]; then512 if [[ "$COMPARE" = "y" ]]; then 541 513 mkdir -p $JHALFSDIR/extras 542 514 cp extras/* $JHALFSDIR/extras … … 550 522 fi 551 523 # 552 if [[ "$REPORT" = " 1" ]]; then524 if [[ "$REPORT" = "y" ]]; then 553 525 cp $COMMON_DIR/create-sbu_du-report.sh $JHALFSDIR/ 554 526 # After being sure that all looks sane, dump the settings to a file … … 557 529 fi 558 530 # 559 [[ "$GETPKG" = " 1" ]] && cp $COMMON_DIR/urls.xsl $JHALFSDIR/531 [[ "$GETPKG" = "y" ]] && cp $COMMON_DIR/urls.xsl $JHALFSDIR/ 560 532 # 561 533 cp $COMMON_DIR/packages.xsl $JHALFSDIR/
Note:
See TracChangeset
for help on using the changeset viewer.