organized project directory. makefile broken
This commit is contained in:
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
XML="/usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml"
|
||||
if [ ! -f "$XML" ]; then
|
||||
echo "Cannot find xdg-shell XML at: $XML" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
OUTDIR="."
|
||||
mkdir -p "$OUTDIR"
|
||||
|
||||
wayland-scanner client-header "$XML" "$OUTDIR/xdg-shell-client-protocol.h"
|
||||
wayland-scanner private-code "$XML" "$OUTDIR/xdg-shell-client-protocol.c"
|
||||
|
||||
echo "Generated:"
|
||||
ls -l "$OUTDIR/xdg-shell-client-protocol.h" "$OUTDIR/xdg-shell-client-protocol.c"
|
||||
Reference in New Issue
Block a user