summaryrefslogtreecommitdiff
path: root/.git-hooks
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2020-08-12 11:14:30 +0200
committerMiklos Vajna <vmiklos@collabora.com>2020-08-12 16:38:13 +0200
commit77128b8396e973606bb87b9795d28252f7892fc5 (patch)
tree5d4b5b8b7ca899272b1766fb261f6306127353a3 /.git-hooks
parentebdc0f1aada999e8b3bc8a32849a62b38819fead (diff)
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.tietze@documentfoundation.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to '.git-hooks')
-rwxr-xr-x.git-hooks/pre-commit4
1 files changed, 4 insertions, 0 deletions
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");