gen_wl_protocols.sh (460B)
1 #!/bin/sh 2 # Generate wayland xdg shell protocol 3 4 if ! test -d /usr/share/wayland-protocols 5 then 6 exit 1 7 fi 8 9 if ! test -d wl_protocols 10 then 11 mkdir wl_protocols 12 wayland-scanner client-header "/usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml" "wl_protocols/wayland_xdg_shell.h" 13 wayland-scanner private-code "/usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml" "wl_protocols/wayland_xdg_shell.c" 14 fi 15 16 printf "wl_protocols/wayland_xdg_shell.c"