From 0b86c390ca507e8b50747e9fe9b178ee2cb40400 Mon Sep 17 00:00:00 2001 From: emersion Date: Tue, 29 May 2018 11:30:32 +0100 Subject: [PATCH] Check all protocols in strict mode when building --- .build.yml | 4 +--- check.sh | 10 ++++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100755 check.sh diff --git a/.build.yml b/.build.yml index f14fa4f..a7b0138 100644 --- a/.build.yml +++ b/.build.yml @@ -6,6 +6,4 @@ sources: tasks: - protocols: | cd sway-protocols - wayland-scanner client-header < unstable/surface-layers.xml - wayland-scanner server-header < unstable/surface-layers.xml - wayland-scanner code < unstable/surface-layers.xml + ./check.sh diff --git a/check.sh b/check.sh new file mode 100755 index 0000000..a5188ca --- /dev/null +++ b/check.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +for f in $(echo unstable/*.xml); do + wayland-scanner -s client-header "$f" /dev/null + wayland-scanner -s server-header "$f" /dev/null + wayland-scanner -s public-code "$f" /dev/null + wayland-scanner -s private-code "$f" /dev/null +done