Changeset 200fbde for jhalfs


Ignore:
Timestamp:
08/09/2017 01:51:40 PM (7 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
506120ee
Parents:
340c27e
Message:

jhalfs: reorder actions: install lfs before custom tools
and blfs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jhalfs

    r340c27e r200fbde  
    353353if [[ "$REBUILD_MAKEFILE" = "n" ]] ; then
    354354
    355   # If requested, clean the build directory
     355# If requested, clean the build directory
    356356  clean_builddir
    357357
     
    360360  fi
    361361
    362   # Create $BUILDDIR/sources even though it could be created by get_sources()
     362# Create $BUILDDIR/sources even though it could be created by get_sources()
    363363  if [[ ! -d $BUILDDIR/sources ]]; then
    364364    mkdir -p $BUILDDIR/sources
    365365  fi
    366   #
    367   # Create the log directory
     366
     367# Create the log directory
    368368  if [[ ! -d $LOGDIR ]]; then
    369369    mkdir $LOGDIR
    370370  fi
    371371  >$LOGDIR/$LOG
    372   #
    373   # Copy common helper files
     372
     373# Copy common helper files
    374374  cp $COMMON_DIR/{makefile-functions,progress_bar.sh} $JHALFSDIR/
    375   # Copy needed stylesheets
     375
     376# Copy needed stylesheets
    376377  cp $COMMON_DIR/{packages.xsl,chroot.xsl} $JHALFSDIR/
    377   #
    378   # Fix the XSL book parser
     378
     379# Fix the XSL book parser
    379380  case $PROGNAME in
    380381    clfs* ) sed 's,FAKEDIR,'${BOOK}/BOOK',' ${PACKAGE_DIR}/${XSL} > $JHALFSDIR/${XSL} ;;
     
    383384  esac
    384385  export XSL=$JHALFSDIR/${XSL}
    385   #
    386 
    387   # Copy packageManager.xml, if needed
     386
     387# Copy packageManager.xml, if needed
    388388  [[ "$PKGMNGT" = "y" ]] && [[ "$PROGNAME" = "lfs" ]] && {
    389389    cp $PKGMNGTDIR/packageManager.xml  $JHALFSDIR/
    390390    cp $PKGMNGTDIR/packInstall.sh  $JHALFSDIR/
    391391    }
    392   #
    393   # Copy urls.xsl, if needed
     392
     393# Copy urls.xsl, if needed
    394394  [[ "$GETPKG" = "y" ]] && cp $COMMON_DIR/urls.xsl  $JHALFSDIR/
    395   #
    396   # Create the test-log directory, if needed
     395
     396# Create the test-log directory, if needed
    397397  [[ "$TEST" != "0" ]] && [[ ! -d $TESTLOGDIR ]] && install -d -m 1777 $TESTLOGDIR
    398   #
    399   # Create the installed-files directory, if needed
     398
     399# Create the installed-files directory, if needed
    400400  [[ "$INSTALL_LOG" = "y" ]] && [[ ! -d $FILELOGDIR ]] && install -d -m 1777 $FILELOGDIR
    401   #
    402   # Prepare report creation, if needed
     401
     402# Prepare report creation, if needed
    403403  if [[ "$REPORT" = "y" ]]; then
    404404    cp $COMMON_DIR/create-sbu_du-report.sh  $JHALFSDIR/
     
    407407    validate_config > $JHALFSDIR/jhalfs.config
    408408  fi
    409   #
    410   # Copy optimize files, if needed
     409
     410# Copy optimize files, if needed
    411411  [[ "$OPTIMIZE" != "0" ]] && cp optimize/opt_override $JHALFSDIR/
    412   #
    413   # Copy compare files, if needed
     412
     413# Copy compare files, if needed
    414414  if [[ "$COMPARE" = "y" ]]; then
    415415    mkdir -p $JHALFSDIR/extras
    416416    cp extras/* $JHALFSDIR/extras
    417417  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
    420426  if [[ "${CUSTOM_TOOLS}" = "y" ]]; then
    421427    echo "Copying custom tool scripts to $JHALFSDIR"
     
    423429    cp -f custom/config/* $JHALFSDIR/custom-commands
    424430  fi
    425   #
    426   # Install blfs-tool, if requested.
     431
     432# Install blfs-tool, if requested.
    427433  if [[ "${BLFS_TOOL}" = "y" ]] ; then
    428434    echo Installing BLFS book and tools
     
    430436    [[ ${PIPESTATUS[0]} != 0 ]] && exit 1
    431437  fi
    432   #
    433 
    434 # Download or updates the book source
    435   get_book
    436   extract_commands
    437   echo "${SD_BORDER}${nl_}"
    438438
    439439fi
Note: See TracChangeset for help on using the changeset viewer.