mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
95a5e7b438
This lets us say 'you don't need to package this' about gi-docgen.
27 lines
894 B
Bash
Executable File
27 lines
894 B
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 --force-fallback-for gi-docgen ${release_build_dir} || exit
|
|
meson dist -C${release_build_dir} --include-subprojects || exit
|
|
|
|
# now build the docs
|
|
meson configure ${release_build_dir} -Dintrospection=enabled -Dgtk_doc=true || exit
|
|
ninja -C${release_build_dir} || exit
|
|
|
|
tar cxf ${release_build_dir}/meson-dist/gtk-docs-${version}.tar.xz -C${release_build_dir} docs/reference
|
|
|
|
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."
|