diff options
Diffstat (limited to 'src/build.sh')
-rw-r--r-- | src/build.sh | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/src/build.sh b/src/build.sh index 614924b..664e8e7 100644 --- a/src/build.sh +++ b/src/build.sh @@ -26,18 +26,21 @@ get_deps () { build_order () { checked="" - while [ "$#" != "0" ]; do - name=$1 - shift - for dep in $(get_deps $name); do - [ -z "${checked##*$name*}" ] && { - checked="$checked $name" - set -- $@ $dep - echo $name $dep - ${VERBOSE} && echo "checking $name" 1>&2 - } - done - done | tsort | reverse_lines + ${RESOLVE_DEPS} && { + while [ "$#" != "0" ]; do + name=$1 + shift + for dep in $(get_deps $name); do + [ -z "${checked##*$name*}" ] && { + checked="$checked $name" + set -- $@ $dep + echo $name $dep + ${VERBOSE} && echo "checking $name" 1>&2 + } + done + done | tsort | reverse_lines + + } || echo $@ } # get the revision hash of a given builddir |