virt-viewer/prepare-release.sh

41 lines
980 B
Bash
Raw Normal View History

2007-07-20 23:26:08 +04:00
#!/bin/sh
set -e
set -v
rm -rf build
meson --prefix="`pwd`/build/vroot" build/native
ninja -C build/native dist
2007-07-20 23:26:08 +04:00
if [ -f /usr/bin/rpmbuild ]; then
rpmbuild --nodeps \
--define "_sourcedir `pwd`/build/native/meson-dist" \
-ba --clean build/native/virt-viewer.spec
2008-11-28 15:24:56 +03:00
fi
# Test mingw32 cross-compile
if test -x /usr/bin/i686-w64-mingw32-gcc ; then
meson --prefix="`pwd`/build/vroot" \
--cross-file=/usr/share/mingw/toolchain-mingw32.meson build/win32
2008-11-28 15:24:56 +03:00
ninja -C build/win32
fi
# Test mingw64 cross-compile
if test -x /usr/bin/x86_64-w64-mingw32-gcc ; then
meson --prefix="`pwd`/build/vroot" \
--cross-file=/usr/share/mingw/toolchain-mingw64.meson build/win64
ninja -C build/win64
fi
2008-11-28 15:24:56 +03:00
if test -x /usr/bin/i686-w64-mingw32-gcc && test -x /usr/bin/x86_64-w64-mingw32-gcc ; then
if test -f /usr/bin/rpmbuild ; then
rpmbuild --nodeps \
--define "_sourcedir `pwd`/build/native/meson-dist" \
-ba --clean build/native/mingw-virt-viewer.spec
2008-11-28 15:24:56 +03:00
fi
2007-07-20 23:26:08 +04:00
fi