diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-05-29 14:41:45 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-05-30 13:28:41 +0200 |
commit | 3bc59080c93d008e276815009bf0b69c6bf3f4d6 (patch) | |
tree | d9bdc76ac7c72ed14af6160c065904ba36d8fee1 /scripts | |
parent | 2b4535bd3025886a5237ecf385fe5f92b8c28da2 (diff) | |
download | aports-3bc59080c93d008e276815009bf0b69c6bf3f4d6.tar.bz2 aports-3bc59080c93d008e276815009bf0b69c6bf3f4d6.tar.xz |
scripts/mkimage-yaml.sh: add options for title and description
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mkimage-yaml.sh | 6 |
1 files changed, 6 insertions, 0 deletions
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 |