summaryrefslogtreecommitdiff
path: root/src/build.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-01-14 22:45:11 +0000
committerdavidovski <david@davidovski.xyz>2023-01-14 22:45:11 +0000
commit6d05aeed3a6ee0e9443838e5ba85dee76e0b9e37 (patch)
tree8c2bcbfed5470832f37f68ea6cf9692a0f62a0b2 /src/build.sh
parent9019894c1db1a36941c66cfd1a3a557103b7495e (diff)
Allow no deps for building
Diffstat (limited to 'src/build.sh')
-rw-r--r--src/build.sh27
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