~ubuntu-branches/ubuntu/lucid/libchewing/lucid

« back to all changes in this revision

Viewing changes to test/debug-chewing-shell.sh

  • Committer: Bazaar Package Importer
  • Author(s): Kanru Chen
  • Date: 2008-12-04 15:34:03 UTC
  • mfrom: (1.1.4 upstream) (2.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20081204153403-l9cksddl1k2e71zy
Tags: 0.3.2-1
* New Upstream Version 
* [5d96bf5] Update watch address
* [351d417] Add Vcs-Git field
* [63cd26a] Add Vcs-Browser field
* [e2a59e2] Conflict with scim-chewing << 0.3.3
* [cd15be8] Change libchewing3-data from all to any since we build
  binary data now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
PREFERABLE_XTERM=urxvt
 
4
MESSAGES="Please type 'run' inside gdb session to invoke genkeystroke.
 
5
 
 
6
After execution, close this X terminal."
 
7
 
 
8
$PREFERABLE_XTERM -e sh \
 
9
  -c "tty > /tmp/name_of_xterm_ptty && 
 
10
      echo -e \"$MESSAGES\" && sleep 100000" &
 
11
sleep 1
 
12
echo "tty `cat /tmp/name_of_xterm_ptty`" > .chewing-gdb-macro
 
13
echo "set args test.txt" >> .chewing-gdb-macro
 
14
libtool --mode=execute gdb -x .chewing-gdb-macro genkeystroke
 
15
rm -f .chewing-gdb-macro