diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-05-29 14:41:45 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-06-13 19:39:01 +0200 |
commit | 4ff479b83c659760fabec54a42b44133ebcd045e (patch) | |
tree | c880fdc42fee10220c4a35ec3aad50140d623c3f | |
parent | 9cb3ae7f249a6288da22b8dd66d8bc808a85c267 (diff) | |
download | alpine_aports-4ff479b83c659760fabec54a42b44133ebcd045e.tar.bz2 alpine_aports-4ff479b83c659760fabec54a42b44133ebcd045e.tar.xz alpine_aports-4ff479b83c659760fabec54a42b44133ebcd045e.zip |
scripts/mkimage-yaml.sh: add options for title and description
(cherry picked from commit 3bc59080c93d008e276815009bf0b69c6bf3f4d6)
-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 | |||
16 | --branch) branch="$1"; shift;; | 16 | --branch) branch="$1"; shift;; |
17 | --release) release="$1"; shift;; | 17 | --release) release="$1"; shift;; |
18 | --flavor) flavor="$1"; shift;; | 18 | --flavor) flavor="$1"; shift;; |
19 | --title) title="$1"; shift;; | ||
20 | --desc) desc="$1"; shift;; | ||
19 | --) break ;; | 21 | --) break ;; |
20 | -*) usage; exit 1;; | 22 | -*) usage; exit 1;; |
21 | esac | 23 | esac |
@@ -50,9 +52,13 @@ for image; do | |||
50 | time=${time%.*} | 52 | time=${time%.*} |
51 | file=${filepath##*/} | 53 | file=${filepath##*/} |
52 | flavor=${file%-${release}-${arch}.*} | 54 | flavor=${file%-${release}-${arch}.*} |
55 | desc=$(echo "$desc" | sed -E 's/^\s*/ /') | ||
53 | 56 | ||
54 | cat <<-EOF | 57 | cat <<-EOF |
55 | - | 58 | - |
59 | title: "$title" | ||
60 | desc: | | ||
61 | $desc | ||
56 | branch: $branch | 62 | branch: $branch |
57 | arch: $arch | 63 | arch: $arch |
58 | version: $release | 64 | version: $release |