Ignore:
Timestamp:
11/17/2015 08:22:04 PM (9 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
2.4, ablfs-more, legacy, new_features, trunk
Children:
82bd7a6
Parents:
5fb012d
Message:

Automate the process of choosing action when there are circular dependencies.
This has to be tested, but hopefully, it should allow to find a coherent
build order when there are not too many circular dependencies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/gen_pkg_book.sh

    r5fb012d r7dc8595  
    9191  local -i index
    9292  local DepDir=$1
    93   rm -f $DepDir/*.dep
     93  rm -f $DepDir/*.{o,}dep
     94  for (( index=0 ; index < ${#TARGET[*]} ; index ++ )); do
     95    echo 1 ${TARGET[${index}]} >> $DepDir/root.odep
     96  done
    9497  echo 1 > $DepDir/root.dep
    95   for (( index=0 ; index < ${#TARGET[*]} ; index ++ )); do
    96     echo ${TARGET[${index}]} >> $DepDir/root.dep
    97   done
     98  echo 1 >> $DepDir/root.dep
     99  cat $DepDir/root.odep >> $DepDir/root.dep
    98100}
    99101
     
    146148pushd $DepDir > /dev/null
    147149set +e
    148 generate_dependency_tree root.dep
     150generate_dependency_tree root.dep 1
    149151echo
    150152LIST="$(tree_browse root.dep)"
Note: See TracChangeset for help on using the changeset viewer.