mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-08 17:50:10 +00:00
29 lines
1.0 KiB
Bash
Executable File
29 lines
1.0 KiB
Bash
Executable File
#! /bin/sh
|
|
|
|
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 the release tarball
|
|
meson setup ${release_build_dir} || exit
|
|
meson dist -C${release_build_dir} || exit
|
|
|
|
# now build the docs
|
|
meson configure -Dgtk_doc=true ${release_build_dir} || exit
|
|
ninja -C${release_build_dir} gdk4-doc gsk4-doc gtk4-doc || exit
|
|
|
|
tar cf ${release_build_dir}/meson-dist/gdk-docs-${version}.tar.xz -C${release_build_dir} docs/reference/gdk
|
|
tar cf ${release_build_dir}/meson-dist/gsk-docs-${version}.tar.xz -C${release_build_dir} docs/reference/gsk
|
|
tar cf ${release_build_dir}/meson-dist/gtk-docs-${version}.tar.xz -C${release_build_dir} docs/reference/gtk
|
|
|
|
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."
|