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
|
|
|
|
|
2021-03-27 12:55:51 +00:00
|
|
|
# make sure included subprojects are current
|
|
|
|
meson subprojects update gi-docgen
|
|
|
|
|
2020-09-04 13:56:10 +00:00
|
|
|
# make the release tarball
|
2023-02-04 15:31:55 +00:00
|
|
|
meson setup -Dintrospection=enabled -Dgtk_doc=true --force-fallback-for gi-docgen ${release_build_dir} || exit
|
2021-03-27 18:22:19 +00:00
|
|
|
meson compile -C${release_build_dir} || exit
|
2021-03-18 23:44:21 +00:00
|
|
|
meson dist -C${release_build_dir} --include-subprojects || exit
|
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."
|