Clouseau: Added a script wrapper launcher.

SVN revision: 67634
This commit is contained in:
Tom Hacohen 2012-01-31 14:40:51 +00:00
parent e76d5335c4
commit 928a4fdc34
6 changed files with 29 additions and 3 deletions

7
README
View File

@ -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.

2
TODO
View File

@ -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.

View File

@ -40,6 +40,7 @@ AC_OUTPUT([
Makefile
src/Makefile
src/lib/Makefile
src/scripts/Makefile
data/Makefile
data/images/Makefile
])

View File

@ -1,4 +1,4 @@
MAINTAINERCLEANFILES = Makefile.in
SUBDIRS = lib
SUBDIRS = lib scripts

9
src/scripts/Makefile.am Normal file
View File

@ -0,0 +1,9 @@
MAINTAINERCLEANFILES = Makefile.in
uninstall-local:
rm $(bindir)/clouseau
install-exec-local:
./gen_script.sh $(libdir)/clouseau
$(INSTALL) clouseau $(bindir)

11
src/scripts/gen_script.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
cat <<-ENDOFMESSAGE>clouseau
#!/bin/sh
if [ \$# -lt 1 ]
then
echo "Usage: clouseau <executable> [executable parameters]"
fi
LD_PRELOAD="$1/libclouseau.so" \$*
ENDOFMESSAGE
chmod +x clouseau