summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-06-23 16:19:36 (GMT)
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2016-02-20 22:56:16 (GMT)
commitd2c6de9efc2cf247a111b9a5fae8399ef6ee6f43 (patch)
treeaa9d860ccde82a7eb4754a8d14d1e11912b7601d
parentc8debf6b56614603aef94fa392418fdcaa0f05c7 (diff)
downloaddefinitions-baserock/pedroalvarez/distbuild-debugging-tools.tar.gz
Change-Id: I5b8975c452c38586a01fea2a20b09a4e62d95507
-rw-r--r--scripts/generate-fake-stratum.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/generate-fake-stratum.sh b/scripts/generate-fake-stratum.sh
index 873ab78..0e1a223 100644
--- a/scripts/generate-fake-stratum.sh
+++ b/scripts/generate-fake-stratum.sh
@@ -15,8 +15,10 @@ mkdir -p strata/$stratum_name
echo "name: $stratum_name" > "strata/$stratum_name.morph"
echo "kind: stratum" >> "strata/$stratum_name.morph"
echo "chunks:" >> "strata/$stratum_name.morph"
+chunk_name="none"
for var in `seq 1 50`; do
+ prev_chunk_name="$chunk_name"
chunk_name="fake-chunk$var"
echo "name: $chunk_name" > "strata/$stratum_name/$chunk_name.morph"
echo "kind: chunk" >> "strata/$stratum_name/$chunk_name.morph"
@@ -30,5 +32,10 @@ for var in `seq 1 50`; do
echo " ref: master" >> "strata/$stratum_name.morph"
echo " build-mode: bootstrap" >> "strata/$stratum_name.morph"
echo " prefix: /tools" >> "strata/$stratum_name.morph"
+ if [ $prev_chunk_name != "none" ]; then
+ echo " build-depends:" >> "strata/$stratum_name.morph"
+ echo " - $prev_chunk_name" >> "strata/$stratum_name.morph"
+ fi
+
done