File: refresh

package info (click to toggle)
libvirt 7.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 143,760 kB
  • sloc: ansic: 502,517; xml: 180,512; python: 8,627; sh: 3,992; perl: 2,763; makefile: 509; javascript: 116; cpp: 22
file content (42 lines) | stat: -rwxr-xr-x 956 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh

if test -z "$1"
then
    echo "syntax: $0 PATH-TO-LCITOOL"
    exit 1
fi

LCITOOL=$1

if ! test -x "$LCITOOL"
then
    echo "$LCITOOL is not executable"
    exit 1
fi

HOSTS=$($LCITOOL hosts | grep -Ev 'freebsd|macos')

for host in $HOSTS
do
    case "$host" in
    fedora-rawhide)
        for cross in mingw32 mingw64
        do
            $LCITOOL dockerfile $host libvirt --cross $cross > ci-$host-cross-$cross.Dockerfile
        done
        ;;
    debian-*)
        for cross in aarch64 armv6l armv7l i686 mips mips64el mipsel ppc64le s390x
        do
            if test "$host-cross-$cross" = "debian-9-cross-i686" ||
               test "$host-cross-$cross" = "debian-sid-cross-mips"
            then
                continue
            fi
            $LCITOOL dockerfile $host libvirt --cross $cross > ci-$host-cross-$cross.Dockerfile
        done
        ;;
    esac

    $LCITOOL dockerfile $host libvirt > ci-$host.Dockerfile
done