Changeset 3e7ceed for jhalfs


Ignore:
Timestamp:
12/15/2006 10:53:10 AM (17 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
fcb540b
Parents:
830f28d
Message:

Ported CUSTOM_TOOLS support to all books.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jhalfs

    r830f28d r3e7ceed  
    333333    mkdir -p $JHALFSDIR
    334334  fi
    335   #
     335
    336336  # Create $BUILDDIR/sources even though it could be created by get_sources()
    337337  if [[ ! -d $BUILDDIR/sources ]]; then
     
    345345  >$LOGDIR/$LOG
    346346  #
     347  # Copy common helper files
     348  cp $COMMON_DIR/{makefile-functions,progress_bar.sh,packages.xsl} $JHALFSDIR/
     349  #
     350  # Fix the XSL book parser
     351  sed 's,FAKEDIR,'$BOOK',' $PACKAGE_DIR/$XSL > $JHALFSDIR/${XSL}
     352  export XSL=$JHALFSDIR/${XSL}
     353  #
     354
     355  # Copy urls.xsl, if needed
     356  [[ "$GETPKG" = "y" ]] && cp $COMMON_DIR/urls.xsl  $JHALFSDIR/
     357  #
     358  # Create the test-log directory, if needed
    347359  [[ "$TEST" != "0" ]] && [[ ! -d $TESTLOGDIR ]] && install -d -m 1777 $TESTLOGDIR
    348360  #
    349   cp $COMMON_DIR/{makefile-functions,progress_bar.sh} $JHALFSDIR/
    350   #
    351   [[ "$OPTIMIZE" != "0" ]] && cp optimize/opt_override $JHALFSDIR/
    352   #
    353   if [[ "$COMPARE" = "y" ]]; then
    354     mkdir -p $JHALFSDIR/extras
    355     cp extras/* $JHALFSDIR/extras
    356   fi
    357   #
    358   if [[ -n "$FILES" ]]; then
    359     # pushd/popd necessary to deal with multiple files
    360     pushd $PACKAGE_DIR 1> /dev/null
    361       cp $FILES $JHALFSDIR/
    362     popd 1> /dev/null
    363   fi
    364   #
    365   if [[ "${PROGNAME}" = "lfs" ]]; then
    366     if [[ "${CUSTOM_TOOLS}" = "y" ]]; then
    367       echo "Copying custom tool scripts to $JHALFSDIR"
    368       mkdir -p $JHALFSDIR/custom-commands/config
    369       mkdir -p $JHALFSDIR/custom-commands/scripts
    370     cp -Rf custom/* $JHALFSDIR/custom-commands
    371     fi
    372   fi
    373 
    374   #
     361  # Prepare report creation, if needed
    375362  if [[ "$REPORT" = "y" ]]; then
    376363    cp $COMMON_DIR/create-sbu_du-report.sh  $JHALFSDIR/
     
    380367  fi
    381368  #
    382   [[ "$GETPKG" = "y" ]] && cp $COMMON_DIR/urls.xsl  $JHALFSDIR/
    383   #
    384   cp $COMMON_DIR/packages.xsl  $JHALFSDIR/
    385   #
    386   sed 's,FAKEDIR,'$BOOK',' $PACKAGE_DIR/$XSL > $JHALFSDIR/${XSL}
    387   export XSL=$JHALFSDIR/${XSL}
    388 
     369  # Copy optimize files, if needed
     370  [[ "$OPTIMIZE" != "0" ]] && cp optimize/opt_override $JHALFSDIR/
     371  #
     372  # Copy compare files, if needed
     373  if [[ "$COMPARE" = "y" ]]; then
     374    mkdir -p $JHALFSDIR/extras
     375    cp extras/* $JHALFSDIR/extras
     376  fi
     377  #
     378
     379  # Copy custom tools config files, if requested
     380  if [[ "${CUSTOM_TOOLS}" = "y" ]]; then
     381    echo "Copying custom tool scripts to $JHALFSDIR"
     382    mkdir -p $JHALFSDIR/custom-commands
     383    cp -f custom/config/* $JHALFSDIR/custom-commands
     384  fi
     385  #
    389386  # Install blfs-tool, if requested.
    390387  if [[ "${BLFS_TOOL}" = "y" ]] ; then
     
    406403    rm -rf $JHALFSDIR/blfs-tool-deps/.svn
    407404  fi
     405  #
    408406
    409407  get_book
     
    438436
    439437build_Makefile
    440 if [[ "${PROGNAME}" = "lfs" ]]; then
    441   if [[ "${CUSTOM_TOOLS}" = "y" ]]; then
    442     add_CustomTools
    443   fi
    444 fi
     438
    445439echo "${SD_BORDER}${nl_}"
    446440
Note: See TracChangeset for help on using the changeset viewer.