#!/bin/bash
-#This script updates LyX, runs LyX, starts spamming it with hundreds of
+#development/keystest/lyx_make.sh [--update]
+#This script runs LyX (and possibly updates), starts spamming it with hundreds of
#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}*
fi
mkdir -p $LT/out
-if which wmctrl xvkbd bash xterm python
+if which wmctrl xvkbd bash xterm python xclip
then
- svn up
- ./autogen.sh && ./configure --enable-debug -- && nice -18 make && (bash $LT/autolyx & sleep 9 ; xterm -e python $LT/test.py)
+
+ if [ a"$1" == a--update ]; then
+ svn up
+ ./autogen.sh && ./configure --enable-debug -- && nice -18 make &&
+ if [ ! a"$2" == a"0" ]
+ then
+ bash $LT/autolyx
+ fi
+ 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
+
+ bash $LT/autolyx
+ fi
+
else
echo NEEDS the following packages:
- echo wmctrl xvkbd bash xterm python
+ echo wmctrl xvkbd bash xterm python xclip
fi