aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorEmanuele Aina <emanuele.aina@collabora.com>2012-03-06 07:04:51 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-03-06 23:14:47 +0800
commitaeab15ec37370f3c3aa8b4e1a4aec480109a6803 (patch)
tree4c79d77e6f5b877208c0706f70f448a89e00dd62 /tools
parent912a95b7ceb56e16854fa09af9c31cb33b6303ca (diff)
downloadgsoc2013-empathy-aeab15ec37370f3c3aa8b4e1a4aec480109a6803.tar
gsoc2013-empathy-aeab15ec37370f3c3aa8b4e1a4aec480109a6803.tar.gz
gsoc2013-empathy-aeab15ec37370f3c3aa8b4e1a4aec480109a6803.tar.bz2
gsoc2013-empathy-aeab15ec37370f3c3aa8b4e1a4aec480109a6803.tar.lz
gsoc2013-empathy-aeab15ec37370f3c3aa8b4e1a4aec480109a6803.tar.xz
gsoc2013-empathy-aeab15ec37370f3c3aa8b4e1a4aec480109a6803.tar.zst
gsoc2013-empathy-aeab15ec37370f3c3aa8b4e1a4aec480109a6803.zip
Run from the source directory without installing
Use the tools/empathy-env wrapper to set an appropriate environment and launch the compiled programs without installing them. https://bugzilla.gnome.org/show_bug.cgi?id=671447
Diffstat (limited to 'tools')
-rw-r--r--tools/.gitignore1
-rw-r--r--tools/Makefile.am7
-rw-r--r--tools/empathy-env.in9
3 files changed, 16 insertions, 1 deletions
diff --git a/tools/.gitignore b/tools/.gitignore
index 2578e9883..d6ba5d9dc 100644
--- a/tools/.gitignore
+++ b/tools/.gitignore
@@ -1,3 +1,4 @@
_gen
extensions.html
telepathy-glib-env
+empathy-env
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 96cc60f58..49bcb04b5 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -1,11 +1,15 @@
abs_top_builddir = @abs_top_builddir@
-noinst_SCRIPTS = telepathy-glib-env
+noinst_SCRIPTS = telepathy-glib-env empathy-env
telepathy-glib-env: telepathy-glib-env.in Makefile
sed -e 's![@]abs_top_builddir[@]!$(abs_top_builddir)!' $< > $@
chmod +x $@
+empathy-env: empathy-env.in Makefile
+ sed -e 's![@]abs_top_builddir[@]!$(abs_top_builddir)!' $< > $@
+ chmod +x $@
+
EXTRA_DIST = \
c-constants-gen.py \
check-coding-style.mk \
@@ -34,6 +38,7 @@ EXTRA_DIST = \
telepathy.am \
telepathy-glib.supp \
telepathy-glib-env.in \
+ empathy-env.in \
test-wrapper.sh \
with-session-bus.sh \
xincludator.py
diff --git a/tools/empathy-env.in b/tools/empathy-env.in
new file mode 100644
index 000000000..3de477910
--- /dev/null
+++ b/tools/empathy-env.in
@@ -0,0 +1,9 @@
+#!/bin/sh
+abs_top_builddir="@abs_top_builddir@"
+export abs_top_builddir
+EMPATHY_SRCDIR=$abs_top_builddir
+export EMPATHY_SRCDIR
+GSETTINGS_SCHEMA_DIR="${EMPATHY_SRCDIR}/data/"
+export GSETTINGS_SCHEMA_DIR
+
+exec "$@"