mirror of
https://gitlab.freedesktop.org/wlroots/wlr-protocols.git
synced 2025-12-20 06:50:05 +01:00
build: pass filenames to check.sh
This ensures in `make check` that $(unstable_protocols) is not broken.
This commit is contained in:
parent
368c9f43cf
commit
07587c61c4
3 changed files with 6 additions and 5 deletions
|
|
@ -6,4 +6,4 @@ sources:
|
||||||
tasks:
|
tasks:
|
||||||
- protocols: |
|
- protocols: |
|
||||||
cd wlr-protocols
|
cd wlr-protocols
|
||||||
./check.sh
|
make check
|
||||||
|
|
|
||||||
4
Makefile
4
Makefile
|
|
@ -10,8 +10,8 @@ unstable_protocols = \
|
||||||
unstable/wlr-output-power-management-unstable-v1.xml \
|
unstable/wlr-output-power-management-unstable-v1.xml \
|
||||||
unstable/wlr-screencopy-unstable-v1.xml
|
unstable/wlr-screencopy-unstable-v1.xml
|
||||||
|
|
||||||
check:
|
check: $(unstable_protocols)
|
||||||
./check.sh
|
./check.sh $(unstable_protocols)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f wlr-protocols.pc
|
rm -f wlr-protocols.pc
|
||||||
|
|
|
||||||
5
check.sh
5
check.sh
|
|
@ -1,7 +1,8 @@
|
||||||
#!/bin/sh -eux
|
#!/bin/sh -eu
|
||||||
|
|
||||||
for f in $(echo unstable/*.xml)
|
for f in "$@"
|
||||||
do
|
do
|
||||||
|
echo >&2 "Checking $f"
|
||||||
wayland-scanner -s client-header "$f" /dev/null
|
wayland-scanner -s client-header "$f" /dev/null
|
||||||
wayland-scanner -s server-header "$f" /dev/null
|
wayland-scanner -s server-header "$f" /dev/null
|
||||||
wayland-scanner -s public-code "$f" /dev/null
|
wayland-scanner -s public-code "$f" /dev/null
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue