From 3bc59080c93d008e276815009bf0b69c6bf3f4d6 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 29 May 2017 14:41:45 +0200 Subject: scripts/mkimage-yaml.sh: add options for title and description --- scripts/mkimage-yaml.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts/mkimage-yaml.sh') diff --git a/scripts/mkimage-yaml.sh b/scripts/mkimage-yaml.sh index 95fb063f2a..46906d7550 100755 --- a/scripts/mkimage-yaml.sh +++ b/scripts/mkimage-yaml.sh @@ -16,6 +16,8 @@ while [ $# -gt 0 ]; do --branch) branch="$1"; shift;; --release) release="$1"; shift;; --flavor) flavor="$1"; shift;; + --title) title="$1"; shift;; + --desc) desc="$1"; shift;; --) break ;; -*) usage; exit 1;; esac @@ -50,9 +52,13 @@ for image; do time=${time%.*} file=${filepath##*/} flavor=${file%-${release}-${arch}.*} + desc=$(echo "$desc" | sed -E 's/^\s*/ /') cat <<-EOF - + title: "$title" + desc: | + $desc branch: $branch arch: $arch version: $release -- cgit v1.2.3