yoz pushed a commit to branch master.
commit 4ac6f8a9bf235a1ecd5b5f7c2cd62ce6d24c188a
Author: Michael Bouchaud <[email protected]>
Date: Tue Sep 3 20:26:44 2013 +0200
entrance: add xephyr script
---
utils/entrance_xephyr.sh | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/utils/entrance_xephyr.sh b/utils/entrance_xephyr.sh
new file mode 100755
index 0000000..4fe27e6
--- /dev/null
+++ b/utils/entrance_xephyr.sh
@@ -0,0 +1,32 @@
+#!/usr/bin/env bash
+DPI=${DPI:-142}
+SCREEN=${SCREEN:-640x480}
+VALGRIND=${VALGRIND:-0}
+GDB=${GDB:-0}
+
+while [ $# -gt 0 ]; do
+ case $1 in
+ -g|--gdb)
+ GDB=1
+ ;;
+ -v|--valgrind)
+ VALGRIND=1
+ ;;
+ esac
+ shift
+done
+
+
+#rm -f ~/.Xauthority
+Xephyr :1 -nolisten tcp -noreset -ac -br -dpi $DPI -screen $SCREEN &
+sleep 1
+if [ $GDB -eq 1 ]
+then
+ gdb --args entrance -x
+elif [ $VALGRIND -eq 1 ]
+then
+ valgrind --leak-check=full entrance -x
+else
+ entrance -x
+fi
+
--
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk