summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xikiwiki.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/ikiwiki.sh b/ikiwiki.sh
index 90e444b..2949687 100755
--- a/ikiwiki.sh
+++ b/ikiwiki.sh
@@ -44,12 +44,17 @@ cp "$ambientdir/ikiwiki-ambient-script" "$script"
# directory. An incremental build needs the local html directory and
# the site's .ikiwiki directory, and changes to those need to persist
# between runs, so we use the cache mechanism.
+
+cat <<EOF >"$tmp/build.yaml"
+image: ~/tmp/ambient/ambient-ikiwiki.qcow2
+src: $srcdir
+cache: $cache
+dependencies: ~/.ikiwiki/
+EOF
+
"$ambientdir/ambient-run" \
- --image ~/tmp/ambient/ambient-ikiwiki.qcow2 \
- --dependencies ~/.ikiwiki/ \
- --cache "$cache" \
--log ~/tmp/ambient/log \
- "$srcdir"
+ "$tmp/build.yaml"
# Remove the script installed one.
rm "$script"