ci/cirrus/refresh
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | if test -z "$1" |
| 4 | then |
| 5 | echo "syntax: $0 PATH-TO-LCITOOL" |
| 6 | exit 1 |
| 7 | fi |
| 8 | |
| 9 | LCITOOL=$1 |
| 10 | |
| 11 | if ! test -x "$LCITOOL" |
| 12 | then |
| 13 | echo "$LCITOOL is not executable" |
| 14 | exit 1 |
| 15 | fi |
| 16 | |
| 17 | HOSTS=$($LCITOOL hosts | grep -E 'freebsd|macos') |
| 18 | |
| 19 | for host in $HOSTS |
| 20 | do |
| 21 | $LCITOOL variables "$host" libvirt+dist,libvirt-glib >"$host.vars" |
| 22 | done |