2020-06-02 15:28:57 +00:00
|
|
|
#!/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
|
|
|
|
|
2020-07-14 09:43:55 +00:00
|
|
|
HOSTS=$($LCITOOL hosts | grep -Ev 'freebsd|macos')
|
2020-06-02 15:28:57 +00:00
|
|
|
|
|
|
|
for host in $HOSTS
|
|
|
|
do
|
|
|
|
case "$host" in
|
|
|
|
libvirt-fedora-rawhide)
|
|
|
|
for cross in mingw32 mingw64
|
|
|
|
do
|
|
|
|
$LCITOOL dockerfile $host libvirt --cross $cross >$host-cross-$cross.Dockerfile
|
|
|
|
done
|
|
|
|
;;
|
|
|
|
libvirt-debian-*)
|
|
|
|
for cross in aarch64 armv6l armv7l i686 mips mips64el mipsel ppc64le s390x
|
|
|
|
do
|
2020-06-23 09:22:49 +00:00
|
|
|
if test "$host-cross-$cross" = "libvirt-debian-9-cross-i686" ||
|
|
|
|
test "$host-cross-$cross" = "libvirt-debian-sid-cross-mips"
|
2020-06-02 15:28:57 +00:00
|
|
|
then
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
$LCITOOL dockerfile $host libvirt --cross $cross >$host-cross-$cross.Dockerfile
|
|
|
|
done
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
$LCITOOL dockerfile $host libvirt >$host.Dockerfile
|
|
|
|
done
|