diff options
author | Cyril Brulebois <kibi@debian.org> | 2011-06-20 23:07:19 +0200 |
---|---|---|
committer | Cyril Brulebois <kibi@debian.org> | 2011-06-20 23:07:19 +0200 |
commit | c7165a0d6bbb1a3442aa2fb6e38fc5b70f1ddfb1 (patch) | |
tree | 44ec98a0108d306ef0f48fff37dafac02efc3da0 | |
parent | be9c6c0829702459f86e1ecf60d6ae430a1f0585 (diff) |
Ship demo clients and a shell wrapper: wayland-run.
-rw-r--r-- | debian/changelog | 2 | ||||
-rw-r--r-- | debian/wayland-demos.install | 16 | ||||
-rwxr-xr-x | debian/wayland-run | 18 |
3 files changed, 36 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index 46b2908..6f1fee6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,5 +9,7 @@ wayland-demos (0.1.0~0-1) UNRELEASED; urgency=low * debian/rules contains a gentarball target to create a tarball from the upstream-experimental branch, to be used until some upstream release happens. + * Manually ship all demo clients under /usr/lib/wayland/bin, and ship + a shell wrapper to run them: wayland-run. -- Cyril Brulebois <kibi@debian.org> Thu, 16 Jun 2011 14:08:14 +0200 diff --git a/debian/wayland-demos.install b/debian/wayland-demos.install index eb0ec0b..70e4ec1 100644 --- a/debian/wayland-demos.install +++ b/debian/wayland-demos.install @@ -10,3 +10,19 @@ usr/lib/wayland/*.so # images: usr/share/wayland/*.png usr/share/wayland/*.svg + +# wrapper to run the demo clients, without polluting /usr/bin: +../../debian/wayland-run usr/bin + +# actual demo clients, installed manually: +../../build/clients/dnd usr/lib/wayland/bin +../../build/clients/eventdemo usr/lib/wayland/bin +../../build/clients/flower usr/lib/wayland/bin +../../build/clients/gears usr/lib/wayland/bin +../../build/clients/image usr/lib/wayland/bin +../../build/clients/resizor usr/lib/wayland/bin +../../build/clients/screenshot usr/lib/wayland/bin +../../build/clients/simple-client usr/lib/wayland/bin +../../build/clients/smoke usr/lib/wayland/bin +../../build/clients/terminal usr/lib/wayland/bin +../../build/clients/view usr/lib/wayland/bin diff --git a/debian/wayland-run b/debian/wayland-run new file mode 100755 index 0000000..6a9cdd3 --- /dev/null +++ b/debian/wayland-run @@ -0,0 +1,18 @@ +#!/bin/sh +# Shell wrapper to run demo clients under $LIBPATH + +LIBPATH=/usr/lib/wayland/bin + +demo=$1 +if [ -f $LIBPATH/$demo ]; then + exec $LIBPATH/$demo +else + if [ -z $demo ]; then + echo "No demo specified, running a random one" >&2 + else + echo "Request demo not found ($demo), running a random one" >&2 + fi + random=$(ls $LIBPATH|shuf|head -1) + echo "Running $random" >&2 + exec $LIBPATH/$random +fi |