manage_variants 416 Bytes
Newer Older
gsell's avatar
gsell committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/bash

declare buildblock=$1
declare variants=$2


declare -r OS=$(uname -s)

while read versions release oss dependencies; do
      	 [[ "${oss}" =~ "${OS}" ]] || continue
	 versions_a=( ${versions//,/ } )
	 dependencies_a=( ${dependencies//,/ } )
	 for version in "${versions_a[@]}"; do
	         "${buildblock}"  "${version}" --release=${release} "${dependencies_a[@]/#/--with=}"
	 done
done < "${variants}"