2009-06-15 20:20:14 +00:00
|
|
|
#!/bin/bash
|
2009-06-15 20:20:24 +00:00
|
|
|
#development/keystest/lyx_make.sh [--update]
|
|
|
|
#This script runs LyX (and possibly updates), starts spamming it with hundreds of
|
2009-06-15 20:20:20 +00:00
|
|
|
#keypresses, and logs all output, including backtraces to development/keystest/out/GDB .
|
|
|
|
#Use report.sh to generated the more useful bug reports in development/keystest/out/{or}*
|
2009-06-15 20:20:14 +00:00
|
|
|
|
2009-06-15 20:20:20 +00:00
|
|
|
LT=development/keystest
|
|
|
|
|
|
|
|
if ! [ -d $LT ]; then
|
|
|
|
echo lyx_make.sh is supposed to be in the root of the lyx svn tree, eg. development/keystest/lyx_make.sh.
|
|
|
|
fi
|
|
|
|
|
|
|
|
mkdir -p $LT/out
|
2009-07-10 15:52:43 +00:00
|
|
|
if which wmctrl xvkbd bash xterm python xclip
|
2009-06-15 20:20:14 +00:00
|
|
|
then
|
2009-06-15 20:20:24 +00:00
|
|
|
|
|
|
|
if [ a"$1" == a--update ]; then
|
|
|
|
svn up
|
2009-06-17 17:56:56 +00:00
|
|
|
./autogen.sh && ./configure --enable-debug -- && nice -18 make &&
|
|
|
|
if [ ! a"$2" == a"0" ]
|
|
|
|
then
|
|
|
|
bash $LT/autolyx
|
|
|
|
fi
|
2009-06-15 20:20:24 +00:00
|
|
|
else
|
|
|
|
DBG=`src/lyx --version 2>&1 | grep C++.Compiler.flags|grep -- -g`;
|
|
|
|
if [ -z "$DBG" ]; then echo Wrong build of LyX binary. ; exit; fi
|
|
|
|
|
2009-06-17 17:56:56 +00:00
|
|
|
bash $LT/autolyx
|
2009-06-15 20:20:24 +00:00
|
|
|
fi
|
|
|
|
|
2009-06-15 20:20:14 +00:00
|
|
|
else
|
|
|
|
echo NEEDS the following packages:
|
|
|
|
echo wmctrl xvkbd bash xterm python
|
|
|
|
fi
|