mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 05:00:09 +00:00
df8cf0e030
We need to force software rendering, or test failures will cause meson dist to fail.
29 lines
870 B
Bash
Executable File
29 lines
870 B
Bash
Executable File
#! /bin/sh
|
|
|
|
export LIBGL_ALWAYS_SOFTWARE=1
|
|
export GDK_VULKAN_DEVICE=1
|
|
|
|
version=$(head -5 meson.build | grep version | sed -e "s/[^']*'//" -e "s/'.*$//")
|
|
release_build_dir="release_build"
|
|
branch=$(git branch --show-current)
|
|
|
|
if [ -d ${release_build_dir} ]; then
|
|
echo "Please remove ./${release_build_dir} first"
|
|
exit 1
|
|
fi
|
|
|
|
# make sure included subprojects are current
|
|
meson subprojects update gi-docgen
|
|
|
|
# make the release tarball
|
|
meson setup -Dintrospection=enabled -Dgtk_doc=true --force-fallback-for gi-docgen ${release_build_dir} || exit
|
|
meson compile -C${release_build_dir} || exit
|
|
meson dist -C${release_build_dir} --include-subprojects || exit
|
|
|
|
|
|
echo -e "\n\nGTK ${version} release on branch ${branch} in ./${release_build_dir}/:\n"
|
|
|
|
ls -l --sort=time -r "${release_build_dir}/meson-dist"
|
|
|
|
echo -e "\nPlease sanity-check these tarballs before uploading them."
|