Merge branch 'release-script' into 'master'

Release script

See merge request GNOME/gtk!2530
This commit is contained in:
Matthias Clasen 2020-09-04 15:30:35 +00:00
commit f70e37a341
3 changed files with 35 additions and 6 deletions

View File

@ -3,12 +3,6 @@ if get_option('gtk_doc')
error('Building the GTK documentation requires Meson 0.52.0')
endif
# Use gtk-doc as a sub-project from the gtk-doc-for-gtk4 branch
# for the time being
dependency('gtk-doc', version: '>=1.99',
fallback: ['gtk-doc', 'dummy_dep'],
default_options: ['tests=false', 'yelp_manual=false'])
glib_prefix = dependency('glib-2.0').get_pkgconfig_variable('prefix')
glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html')

30
make-release.sh Executable file
View File

@ -0,0 +1,30 @@
#! /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
# we include gtk-doc since we need the gtk-doc-for-gtk4 branch
meson setup --force-fallback-for gtk-doc ${release_build_dir} || exit
# make the release tarball
meson dist -C${release_build_dir} --include-subprojects || 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 ${release_build_dir}/docs/reference/gdk
tar cf ${release_build_dir}/meson-dist/gsk-docs-${version}.tar.xz ${release_build_dir}/docs/reference/gsk
tar cf ${release_build_dir}/meson-dist/gtk-docs-${version}.tar.xz ${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."

View File

@ -382,6 +382,11 @@ graphene_dep = dependency('graphene-gobject-1.0', version: graphene_req,
fallback: ['graphene', 'graphene_dep'])
iso_codes_dep = dependency('iso-codes', required: false)
gtk_doc_dep = dependency('gtk-doc', version: '>=1.99',
fallback: ['gtk-doc', 'dummy_dep'],
default_options: ['tests=false', 'yelp_manual=false'],
required: get_option('gtk_doc'))
fontconfig_dep = [] # only used in x11 backend
if os_win32