From b62fca3ec660907d2c5517a06b1be4e5067261b8 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 13 Aug 2023 10:23:03 +0300 Subject: chore: add helper script to publish release artifacts Sponsored-by: author --- publish-release.sh | 17 +++++++++++++++++ tutorial.md | 17 ++++++++--------- 2 files changed, 25 insertions(+), 9 deletions(-) create mode 100755 publish-release.sh diff --git a/publish-release.sh b/publish-release.sh new file mode 100755 index 0000000..741b17b --- /dev/null +++ b/publish-release.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +set -euo pipefail + +img="$1" +dir="$2" + +version="$(basename "$dir")" + +mkdir "$dir" +xz -0vT0 <"$img" >"$dir/v-i.img.xz" +cp configure-installer write-and-config.sh "$dir/" +for file in NEWS.md README.md tutorial.md; do + sed "s/VERSION/$version/" "$file" >tmp.md + pandoc tmp.md -o "$dir/$(basename "$file" .md).html" + rm tmp.md +done diff --git a/tutorial.md b/tutorial.md index c8e48e0..5ba8ce4 100644 --- a/tutorial.md +++ b/tutorial.md @@ -8,14 +8,13 @@ You need: The steps: -1. Download the installer image from - . You can use `curl` or `wget` - or your web browser. Use **one of** the following commands: - - ~~~sh - curl https://files.liw.fi/v-i/v-i.img.xz > v-i.img.xz - wget -c https://files.liw.fi/v-i/v-i.img.xz - ~~~ +1. Download the installer image (`v-i.img.xz`) and related scripts + (`configure-installer` and `write-and-config.sh`) from a + subdirectory or . + + * + * + * 2. Unpack the downloaded image. @@ -49,7 +48,7 @@ The steps: 5. Write the installer image to the USB drive, and configure it. ~~~sh - sudo ./write-and-config.sh config.yaml /dev/sdx v-i.img + sudo bash write-and-config.sh config.yaml /dev/sdx v-i.img ~~~ This will take a few minutes. -- cgit v1.2.1