From c00158b2ebf120c49dcd699b53d02c384fce3a72 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 31 Jul 2023 19:57:00 +0300 Subject: fix: update ikiwiki.sh to current ambient-run CLI Sponsored-by: author --- ikiwiki.sh | 13 +++++++++---- 1 file 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 <"$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" -- cgit v1.2.1