diff --git a/README b/README index 26a214f..8f9449b 100644 --- a/README +++ b/README @@ -1,4 +1,7 @@ -Just run your wanted ecore/elm based app with this lib in LD_PRELOAD, e.g: -LD_PRELOAD=/usr/lib/clouseau/libclouseau.so elementary_test +Usage: +Just run your wanted ecore/elm based app with "clouseau" e.g: +clouseau elementary_test +or +clouseau elementary_test Entry Click "Load" and the rest is straightforward. diff --git a/TODO b/TODO index 6264bd9..e0a5356 100644 --- a/TODO +++ b/TODO @@ -1,3 +1,5 @@ +* Make it possible to hide rects? or show only elm-widgets? or something similar? too much clutter atm. +* Add filter? * Make it an elm module (or setting an env var without a module?) so I'll be able to remotely connect to elm apps. * Split UI and actual program code (better to do the previous bullet first). * Add "grab screenshot" button. diff --git a/configure.ac b/configure.ac index e6d7ef9..1620ad1 100644 --- a/configure.ac +++ b/configure.ac @@ -40,6 +40,7 @@ AC_OUTPUT([ Makefile src/Makefile src/lib/Makefile + src/scripts/Makefile data/Makefile data/images/Makefile ]) diff --git a/src/Makefile.am b/src/Makefile.am index a587cac..104f584 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,4 +1,4 @@ MAINTAINERCLEANFILES = Makefile.in -SUBDIRS = lib +SUBDIRS = lib scripts diff --git a/src/scripts/Makefile.am b/src/scripts/Makefile.am new file mode 100644 index 0000000..b17dea8 --- /dev/null +++ b/src/scripts/Makefile.am @@ -0,0 +1,9 @@ +MAINTAINERCLEANFILES = Makefile.in + +uninstall-local: + rm $(bindir)/clouseau + +install-exec-local: + ./gen_script.sh $(libdir)/clouseau + $(INSTALL) clouseau $(bindir) + diff --git a/src/scripts/gen_script.sh b/src/scripts/gen_script.sh new file mode 100755 index 0000000..acf2dea --- /dev/null +++ b/src/scripts/gen_script.sh @@ -0,0 +1,11 @@ +#!/bin/sh +cat <<-ENDOFMESSAGE>clouseau +#!/bin/sh +if [ \$# -lt 1 ] +then + echo "Usage: clouseau [executable parameters]" +fi +LD_PRELOAD="$1/libclouseau.so" \$* +ENDOFMESSAGE + +chmod +x clouseau