Ignore:
Timestamp:
08/13/2006 10:01:14 AM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
00f4966
Parents:
1b99a8b
Message:

Merged r2925:2931 from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/libs/func_dependencies

    r1b99a8b rd0d9e90  
    6363  ENTRY_END="\"/>"
    6464
    65   echo -en "\tGenerating $TARGET dependencies tree ..."
     65  echo -e "\tGenerating $TARGET dependencies tree ..."
    6666
    6767  mkdir dependencies
     
    121121  esac
    122122
    123   #------------------P---
    124   # Start with a clean depure.txt file
    125   > depure.txt
    126 
    127123  #---------------------
    128124  # If have dependencies, write its XInclude and find sub-dependencies
    129125  if [[ -f dependencies/$TARGET.dep ]]; then
    130     echo -e "Start loop for PKG $TARGET\n" >> depure.txt
    131126    mkdir xincludes && do_dependencies $TARGET
    132127  fi
    133128
    134   echo "done"
     129  echo -e "\n\t... done"
    135130}
    136131
     
    167162  local DEP_LV=$DEP_LEVEL
    168163  local line line2 DEP
    169   echo -e "\tPKG is $PKG" >> depure.txt
    170   echo -e "\tDEP_LEVEL for $PKG is $DEP_LV\n" >> depure.txt
    171164
    172165  #------------------
    173166  #  If a premade xinclude file exists, use it. If not, create one
    174167  if [[ -f xincludes/$PKG.xinc ]] ; then
    175     echo -e "\tReusing xinclude file for PKG $PKG" >> depure.txt
    176168    IFS=$'\x0A'
    177169    for line in `cat xincludes/$PKG.xinc` ; do
     
    219211
    220212    #------------------
    221     echo -e "\tDEP for $PKG is $DEP" >> depure.txt
    222213    # Prevent circular dependencies
    223214    # If all dependencies are circular, the creation of the *.dep file
     
    260251
    261252    #------------------
    262     echo -e "\tDEP_LEVEL for $DEP is $DEP_LV" >> depure.txt
    263253    # XML file of dependency package
    264254    DEP_XML=`grep "^$DEP[[:space:]]" ../packages | cut -f2`
    265     echo -e "\t\tDEP_XML is $DEP_XML\n" >> depure.txt
    266255    case $DEP in
    267256      x-window-system | alsa ) ;; # No page for that (proper link must be created when generating the book)
     
    310299      # If a premade xinclude file esist, include it
    311300      if [[ -f xincludes/$DEP.xinc ]] ; then
    312         echo -e "\tReusing xinclude file for PKG $DEP (to solve $PKG)\n" >> depure.txt
    313301        IFS=$'\x0A'
    314302        for line2 in `cat xincludes/$DEP.xinc` ; do
     
    322310      # Create the xinclude file
    323311      else
    324         echo -e "\nStart new loop for PKG $DEP (to solve $PKG)\n" >> depure.txt
    325312        #
    326313        # >>>>>> THIS IS A RECURSIVE FUNCTION CALL.. BEWARE OF GREMLINS. <<<<<<
     
    330317        #
    331318        set +e
    332          [[ "${VERBOSITY}" > 0 ]] && echo -ne "\nrecursive call: $((++cntr)) ${spaceSTR:0:$cntr} ${RED}$DEP${OFF}"
     319         [[ "${VERBOSITY}" > 0 ]] && echo -ne "\ncall: $((++cntr))${spaceSTR:0:$cntr}${RED}$DEP${OFF}"
    333320            do_dependencies $DEP
    334          [[ "${VERBOSITY}" > 0 ]] && echo -ne  "\n          ret:  $cntr ${spaceSTR:0:$((cntr--))} ${GREEN}$DEP${OFF}\tUsing the new xinclude file for PKG $DEP (to solve $PKG)"
     321         [[ "${VERBOSITY}" > 0 ]] && echo -ne "\n ret: $cntr${spaceSTR:0:$((cntr--))}${GREEN}$DEP${OFF}  Using $DEP Xinc to solve $PKG"
    335322        set -e
    336323
    337324        # Include it when done
    338         echo -e "\tUsing the new xinclude file for PKG $DEP (to solve $PKG)\n" >> depure.txt
    339325        IFS=$'\x0A'
    340326        for line2 in `cat xincludes/$DEP.xinc` ; do
     
    358344  #------------------
    359345  mv xincludes/$PKG.xinc.tmp xincludes/$PKG.xinc
    360   echo -e "Using the new xinclude file for PKG $PKG" >> depure.txt
    361346  IFS=$'\x0A'
    362347  for line in `cat xincludes/$PKG.xinc` ; do
     
    367352    echo -e "$line" >> $TARGET-index.xml.tmp
    368353  done
    369 
    370   echo -e "\nEnd loop for PKG $PKG\n" >> depure.txt
    371354}
Note: See TracChangeset for help on using the changeset viewer.