mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-01-11 15:00:39 +00:00
The files in kas/ are not generic Kas files, but instead designed specifically and solely around the CI system. Change-Id: I30082392ad2231a4c1c41e54a292595adf81715b Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
20 lines
343 B
Bash
Executable File
20 lines
343 B
Bash
Executable File
#! /bin/bash
|
|
|
|
# Read a GitLab CI job name on $1 and transform it to a
|
|
# list of Kas yaml files
|
|
|
|
set -e -u
|
|
|
|
# Read Job namne from $1 and split on /
|
|
IFS=/ read -r -a PARTS<<<$1
|
|
|
|
# Prefix each part with ci/
|
|
PARTS=("${PARTS[@]/#/ci/}")
|
|
|
|
# Suffix each part with .yml
|
|
PARTS=("${PARTS[@]/%/.yml}")
|
|
|
|
# Print colon-separated
|
|
IFS=":"
|
|
echo "${PARTS[*]}"
|