From 065f8f4123ad297a3a37864225b73b72cfc2e43a Mon Sep 17 00:00:00 2001 From: compudj Date: Fri, 16 Sep 2005 01:15:06 +0000 Subject: [PATCH] add lttv wrapper git-svn-id: http://ltt.polymtl.ca/svn@1208 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/configure.in | 2 ++ ltt/branches/poly/lttv/lttv/Makefile.am | 23 ++++++++++++++++++++--- ltt/branches/poly/lttv/lttv/lttv-gui.sh | 8 ++++++++ ltt/branches/poly/lttv/lttv/lttv.sh | 14 ++++++++++++++ 4 files changed, 44 insertions(+), 3 deletions(-) create mode 100644 ltt/branches/poly/lttv/lttv/lttv-gui.sh create mode 100644 ltt/branches/poly/lttv/lttv/lttv.sh diff --git a/ltt/branches/poly/configure.in b/ltt/branches/poly/configure.in index 62db1a53..4fa7c6d3 100644 --- a/ltt/branches/poly/configure.in +++ b/ltt/branches/poly/configure.in @@ -31,6 +31,8 @@ AM_PATH_GLIB_2_0(2.4.0, ,AC_MSG_ERROR([glib is required in order to compile Linu AM_PATH_GTK_2_0(2.4.0, ,AC_MSG_ERROR([gtk is required in order to compile GUI - download it from ftp://ftp.gtk.org/pub/gtk]) , gmodule) +AC_PATH_PROGS(BASH, bash) + AC_SYS_LARGEFILE # Checks for programs. diff --git a/ltt/branches/poly/lttv/lttv/Makefile.am b/ltt/branches/poly/lttv/lttv/Makefile.am index fb7e1329..442f2477 100644 --- a/ltt/branches/poly/lttv/lttv/Makefile.am +++ b/ltt/branches/poly/lttv/lttv/Makefile.am @@ -1,7 +1,24 @@ AM_CFLAGS = $(GLIB_CFLAGS) LIBS += $(POPT_LIBS) $(GLIB_LIBS) -lgobject-2.0 -L$(top_srcdir)/ltt -ltraceread -bin_PROGRAMS = lttv +bin_PROGRAMS = lttv.real + +bin_SCRIPTS = lttv lttv-gui +CLEANFILES = $(bin_SCRIPTS) +EXTRA_DIST = lttv.sh lttv-gui.sh + +lttv: lttv.sh + rm -f lttv + echo "#!"$(BASH) > lttv + cat lttv.sh >> lttv + chmod ugo+x lttv + +lttv-gui: lttv-gui.sh + rm -f lttv-gui + echo "#!"$(BASH) > lttv-gui + cat lttv-gui.sh >> lttv-gui + chmod ugo+x lttv-gui + INCLUDES = \ -DPACKAGE_PLUGIN_DIR=\""$(lttvplugindir)"\" \ @@ -27,11 +44,11 @@ lttvinclude_HEADERS = \ #noinst_HEADERS = \ # filter.h -lttv_SOURCES = batchtest.c main.c module.c option.c \ +lttv_real_SOURCES = batchtest.c main.c module.c option.c \ hook.c attribute.c \ iattribute.c state.c stats.c \ tracecontext.c traceset.c filter.c print.c if LTTVSTATIC - lttv_LDFLAGS = -profile -static + lttv_real_LDFLAGS = -profile -static endif diff --git a/ltt/branches/poly/lttv/lttv/lttv-gui.sh b/ltt/branches/poly/lttv/lttv/lttv-gui.sh new file mode 100644 index 00000000..7ed49748 --- /dev/null +++ b/ltt/branches/poly/lttv/lttv/lttv-gui.sh @@ -0,0 +1,8 @@ +# -* sh *- + +# This is a simple script that starts lttv with default GUI modules +# Mathieu Desnoyers 15-09-2005 + +$0.real -m guievents -m guifilter -m guicontrolflow -m guistatistics \ + -m guitracecontrol $* + diff --git a/ltt/branches/poly/lttv/lttv/lttv.sh b/ltt/branches/poly/lttv/lttv/lttv.sh new file mode 100644 index 00000000..a7d7dc3a --- /dev/null +++ b/ltt/branches/poly/lttv/lttv/lttv.sh @@ -0,0 +1,14 @@ +# -* sh *- + +# This is a simple script that starts lttv with no modules : +# For batch mode. +# Mathieu Desnoyers 15-09-2005 + +if [ x"$*" = x"" ]; then + echo "This is a wrapper around $0.real for convenience purposes" + echo "What you really want is maybe the lttv-gui command ?" + echo + $0.real --help +else + $0.real $* +fi -- 2.34.1