Commit d497e3db authored by Marco Barisione's avatar Marco Barisione
Browse files

Add a script to run maynard

parent 3808c9dc
......@@ -36,6 +36,7 @@ _gen
/missing
/stamp-h1
/maynard-*.tar.xz
/maynard
shell/desktop-shell-client-protocol.h
shell/desktop-shell-protocol.c
shell/shell-helper-client-protocol.h
......
SUBDIRS = data protocol shell po
bin_SCRIPTS = maynard
......@@ -38,6 +38,7 @@ GLIB_GSETTINGS
WAYLAND_SCANNER_RULES(['$(top_srcdir)/protocol'])
AC_CONFIG_FILES([maynard], [chmod +x maynard])
AC_CONFIG_FILES([Makefile
data/Makefile
shell/Makefile
......
#! /bin/sh
PREFIX=@prefix@
LIBEXECDIR=$PREFIX/libexec
ABS_BUILDDIR=@abs_builddir@
md5() {
cat "$1" 2> /dev/null | md5sum
}
check_install() {
local_maynard="$ABS_BUILDDIR/shell/maynard"
installed_maynard="$LIBEXECDIR/maynard"
if [ ! -e "$local_maynard" -o \
! -e "$installed_maynard" -o \
"`md5 \"$local_maynard\"`" != "`md5 \"$installed_maynard\"`" ]; then
echo "It looks like you forgot to run 'make install'." >&1
exit 1
fi
}
xdpyinfo > /dev/null 2>&1
if [ "$?" = "0" ]; then
# We are running under X, so let's assume this is a development
# installation.
check_install
XDG_DATA_DIRS=$XDG_DATA_DIRS:$PREFIX/share/ $PREFIX/bin/weston
else
weston-launch
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment