- Timestamp:
- 08/09/2017 01:51:40 PM (7 years ago)
- Branches:
- ablfs-more, legacy, trunk
- Children:
- 506120ee
- Parents:
- 340c27e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
jhalfs
r340c27e r200fbde 353 353 if [[ "$REBUILD_MAKEFILE" = "n" ]] ; then 354 354 355 355 # If requested, clean the build directory 356 356 clean_builddir 357 357 … … 360 360 fi 361 361 362 362 # Create $BUILDDIR/sources even though it could be created by get_sources() 363 363 if [[ ! -d $BUILDDIR/sources ]]; then 364 364 mkdir -p $BUILDDIR/sources 365 365 fi 366 # 367 366 367 # Create the log directory 368 368 if [[ ! -d $LOGDIR ]]; then 369 369 mkdir $LOGDIR 370 370 fi 371 371 >$LOGDIR/$LOG 372 # 373 372 373 # Copy common helper files 374 374 cp $COMMON_DIR/{makefile-functions,progress_bar.sh} $JHALFSDIR/ 375 # Copy needed stylesheets 375 376 # Copy needed stylesheets 376 377 cp $COMMON_DIR/{packages.xsl,chroot.xsl} $JHALFSDIR/ 377 # 378 378 379 # Fix the XSL book parser 379 380 case $PROGNAME in 380 381 clfs* ) sed 's,FAKEDIR,'${BOOK}/BOOK',' ${PACKAGE_DIR}/${XSL} > $JHALFSDIR/${XSL} ;; … … 383 384 esac 384 385 export XSL=$JHALFSDIR/${XSL} 385 # 386 387 # Copy packageManager.xml, if needed 386 387 # Copy packageManager.xml, if needed 388 388 [[ "$PKGMNGT" = "y" ]] && [[ "$PROGNAME" = "lfs" ]] && { 389 389 cp $PKGMNGTDIR/packageManager.xml $JHALFSDIR/ 390 390 cp $PKGMNGTDIR/packInstall.sh $JHALFSDIR/ 391 391 } 392 # 393 392 393 # Copy urls.xsl, if needed 394 394 [[ "$GETPKG" = "y" ]] && cp $COMMON_DIR/urls.xsl $JHALFSDIR/ 395 # 396 395 396 # Create the test-log directory, if needed 397 397 [[ "$TEST" != "0" ]] && [[ ! -d $TESTLOGDIR ]] && install -d -m 1777 $TESTLOGDIR 398 # 399 398 399 # Create the installed-files directory, if needed 400 400 [[ "$INSTALL_LOG" = "y" ]] && [[ ! -d $FILELOGDIR ]] && install -d -m 1777 $FILELOGDIR 401 # 402 401 402 # Prepare report creation, if needed 403 403 if [[ "$REPORT" = "y" ]]; then 404 404 cp $COMMON_DIR/create-sbu_du-report.sh $JHALFSDIR/ … … 407 407 validate_config > $JHALFSDIR/jhalfs.config 408 408 fi 409 # 410 409 410 # Copy optimize files, if needed 411 411 [[ "$OPTIMIZE" != "0" ]] && cp optimize/opt_override $JHALFSDIR/ 412 # 413 412 413 # Copy compare files, if needed 414 414 if [[ "$COMPARE" = "y" ]]; then 415 415 mkdir -p $JHALFSDIR/extras 416 416 cp extras/* $JHALFSDIR/extras 417 417 fi 418 # 419 # Copy custom tools config files, if requested 418 419 # Download or updates the book source 420 get_book 421 extract_commands 422 echo "${SD_BORDER}${nl_}" 423 cd $CWD # the functions above change directory 424 425 # Copy custom tools config files, if requested 420 426 if [[ "${CUSTOM_TOOLS}" = "y" ]]; then 421 427 echo "Copying custom tool scripts to $JHALFSDIR" … … 423 429 cp -f custom/config/* $JHALFSDIR/custom-commands 424 430 fi 425 # 426 431 432 # Install blfs-tool, if requested. 427 433 if [[ "${BLFS_TOOL}" = "y" ]] ; then 428 434 echo Installing BLFS book and tools … … 430 436 [[ ${PIPESTATUS[0]} != 0 ]] && exit 1 431 437 fi 432 #433 434 # Download or updates the book source435 get_book436 extract_commands437 echo "${SD_BORDER}${nl_}"438 438 439 439 fi
Note:
See TracChangeset
for help on using the changeset viewer.