2020-09-04 13:56:10 +00:00
|
|
|
#! /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
|
2021-01-12 15:50:41 +00:00
|
|
|
meson setup ${release_build_dir} || exit
|
2020-10-01 19:14:33 +00:00
|
|
|
meson dist -C${release_build_dir} || exit
|
2020-09-04 13:56:10 +00:00
|
|
|
|
|
|
|
# now build the docs
|
2021-03-15 01:35:44 +00:00
|
|
|
meson configure ${release_build_dir} -Dintrospection=enabled -Dgtk_doc=true || exit
|
|
|
|
ninja -C${release_build_dir} || exit
|
2020-09-04 13:56:10 +00:00
|
|
|
|
2021-03-15 03:33:10 +00:00
|
|
|
tar cxf ${release_build_dir}/meson-dist/gtk-docs-${version}.tar.xz -C${release_build_dir} docs/reference
|
2020-09-04 13:56:10 +00:00
|
|
|
|
|
|
|
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."
|