Enlightenment CVS committal

Author  : onefang
Project : e17
Module  : apps/e

Dir     : e17/apps/e


Modified Files:
        xnest.sh 


Log Message:
Some tweaks I came up with while trying to valgrind E17 in Xnest running 
on top of GNOME via vnc tunnelled over ssh.

Also, added a description for the new -c option.

===================================================================
RCS file: /cvs/e/e17/apps/e/xnest.sh,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- xnest.sh    12 Nov 2006 10:01:06 -0000      1.12
+++ xnest.sh    12 Nov 2006 12:51:29 -0000      1.13
@@ -4,27 +4,30 @@
 #export ECORE_ERROR_ABORT=1   # To cause ecore to abort on errors.
 #export EVAS_NOCLEAN=1        # To cause evas to not unload modules.
 
+disp_num=":1"                 # Which display do you want the xnest to be on?
+
 main=$DISPLAY
-display=" -display :1"
+display=" -display $disp_num"
 tmp='mktemp' || exit 1
 /bin/echo -e "run\nbt\nq\ny" > $tmp
 
 case "$@" in
-       "")     action="gdb -x $tmp" ; main=":1" ; display=""  ;;
-       "-b")   action="gdb -x $tmp" ; main=":1" ; display=""  ;;
+       "")     action="gdb -x $tmp" ; main=$disp_num ; display=""  ;;
+       "-b")   action="gdb -x $tmp" ; main=$disp_num ; display=""  ;;
+       "-c")   action="cgdb" ; main=$disp_num ; display=""  ;;
        "-d")   action="ddd -display $main" ; display="" ;;
        "-e")   action="" ;;
-       "-g")   action="gdb" ; main=":1" ; display=""  ;;
-       "-c")   action="cgdb" ; main=":1" ; display=""  ;;
+       "-g")   action="gdb" ; main=$disp_num ; display=""  ;;
        "-l")   action="valgrind --tool=memcheck --leak-check=yes 
--show-reachable=yes --log-file=valgrind_log" ;;
        "-m")   action="valgrind --tool=memcheck --log-file=valgrind_log" ;;
-       "-p")   action="memprof --display=$main" ; main=":1" ; display="" ;;
-       "-r")   action="memprof_raster --display=$main" ; main=":1" ; 
display="" ;;
+       "-p")   action="memprof --display=$main" ; main=$disp_num ; display="" 
;;
+       "-r")   action="memprof_raster --display=$main" ; main=$disp_num ; 
display="" ;;
        "-s")   action="strace -F -o strace_log" ;;
-       "-v")   action="valkyrie -display $main" ; main=":1" ; display="" ;;
+       "-v")   action="valkyrie -display $main" ; main=$disp_num ; display="" 
;;
        *)      echo -e "Usage : xnest.sh [option]"
                echo -e "\tdefault option is -b"
                echo -e "\t-b use text debugger with auto backtrace\tgdb"
+               echo -e "\t-c use curses debugger\t\t\t\tcgdb"
                echo -e "\t-d use the GUI debugger\t\t\t\tddd"
                echo -e "\t-e enlightenment with no debugging"
                echo -e "\t-g use text debugger\t\t\t\tgdb"
@@ -35,7 +38,7 @@
                echo -e "\t-s show syscalls\t\t\t\tstrace"
                echo -e "\t-v GUI memory check\t\t\t\tvalkyrie"
                echo -e ""
-               echo -e "You need to add \"-display :1\" as the run arguments 
for the GUI debugger."
+               echo -e "You need to add \"-display $disp_num\" as the run 
arguments for the GUI debugger."
                echo -e "When you have finished with the text debugger, use the 
q command to quit."
                echo -e "The valgrind options will leave a log file with a name 
beginning with valgrind_log"
                exit
@@ -43,11 +46,11 @@
 esac
 
 
-Xnest :1 -ac &
+Xnest $disp_num -ac &
 
 sleep 2   # Someone reported that it starts E before X has started properly.
 
-DISPLAY=$main; E_START="enlightenment_start"; $action enlightenment $display
+export DISPLAY=$main; export E_START="enlightenment_start"; $action 
enlightenment $display
 
 rm -f $tmp
 killall -TERM Xnest



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to