mirror of
https://git.yoctoproject.org/meta-zephyr
synced 2026-01-29 21:58:41 +01:00
Mostly stolen from meta-arm Signed-off-by: Jon Mason <jon.mason@arm.com> Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
343 B
Executable File
343 B
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[*]}"