#!/bin/sh # "Builds" this project's daemon, which is a shell script and so needs no # building at all. What it actually does is take a few seconds and report # progress, because that is the thing worth having: a component slow enough # to watch a bar move on, next to an APK component that finishes in two # seconds. A card with one instant component and one slow one is how you see # whether the per-component timings and the concurrent build really are per # component. set -eu STEPS=8 i=0 while [ "$i" -lt "$STEPS" ]; do i=$((i + 1)) echo "@@progress $i/$STEPS" echo "==> Pretending to compile part $i of $STEPS" sleep 1 done chmod +x ./serve.sh echo "==> Daemon ready"