build: pass filenames to check.sh

This ensures in `make check` that $(unstable_protocols) is not
broken.
This commit is contained in:
Simon Ser 2022-06-01 09:39:10 +02:00 committed by Isaac Freund
parent 368c9f43cf
commit 07587c61c4
3 changed files with 6 additions and 5 deletions

View file

@ -6,4 +6,4 @@ sources:
tasks: tasks:
- protocols: | - protocols: |
cd wlr-protocols cd wlr-protocols
./check.sh make check

View file

@ -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

View file

@ -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