.git-hooks/pre-commit | 4 ++++ 1 file changed, 4 insertions(+) New commits: commit 77128b8396e973606bb87b9795d28252f7892fc5 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Wed Aug 12 11:14:30 2020 +0200 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Wed Aug 12 16:38:13 2020 +0200
git pre-commit hook: check min gtk3 version See tdf#135442 for motivation Change-Id: I6db67b7a39edeb6dd9d9d82fbaa9cb93362e09e4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100588 Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org> Reviewed-by: Miklos Vajna <vmik...@collabora.com> Tested-by: Jenkins diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit index c7d51a1bcb2e..cddc8d330b77 100755 --- a/.git-hooks/pre-commit +++ b/.git-hooks/pre-commit @@ -97,6 +97,10 @@ sub check_whitespaces($) { bad_line("translatable .ui file line without context", $_, "ui"); } + if ((/requires/) and (/lib="gtk+/) and not (/version="3.18/)) + { + bad_line("min supported version of gtk3 is 3.18", $_, "ui"); + } if ((/<interface/) and not(/domain=/)) { bad_line(".ui file without translation domain", $_, "ui"); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits