diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2007-12-17 11:55:29 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2007-12-17 11:55:47 +0000 |
commit | 8dc1f57b1a59dfa4b064b00ef065e40f1df063fd (patch) | |
tree | 7406b909379bc5548e67f0f0279f0e6124d30f01 | |
parent | af06c26f19071d7e48ce8854a626567677ff4799 (diff) |
Add a simple to script to capture a trace without also running the gui.
-rw-r--r-- | Makefile.am | 1 | ||||
-rw-r--r-- | configure.in | 1 | ||||
-rw-r--r-- | odin-run.in | 17 |
3 files changed, 19 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 74daff6..3af82a8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,5 @@ bin_PROGRAMS = odin +bin_SCRIPTS = odin-run odinlibdir = $(libdir)/odin odinlib_LTLIBRARIES = lwp.la diff --git a/configure.in b/configure.in index b90346e..10afac4 100644 --- a/configure.in +++ b/configure.in @@ -88,6 +88,7 @@ AC_SUBST([gtk_CFLAGS gtk_LIBS]) AC_CONFIG_FILES([ Makefile +odin-run ]) AC_OUTPUT diff --git a/odin-run.in b/odin-run.in new file mode 100644 index 0000000..36019d5 --- /dev/null +++ b/odin-run.in @@ -0,0 +1,17 @@ +#!/bin/sh + +prefix=@prefix@ +exec_prefix=@exec_prefix@ +lib=@libdir@/odin/lwp.so +if [ -n "$LD_PRELOAD" ]; then + LD_PRELOAD=$lib:$LD_PRELOAD +else + LD_PRELOAD=$lib +fi +export LD_PRELOAD + +LWP_PATH=$1 +export LWP_PATH + +shift +exec $@ |