blob: 1c064689525743fa276f1f016228d54f6a78325e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#! /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 ${release_build_dir} || exit
# make the release tarball
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} pango-doc || exit
tar cf ${release_build_dir}/meson-dist/pango-docs-${version}.tar.xz -C${release_build_dir} docs/
echo -e "\n\nPango ${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."
|