mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
d9fa978617
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30655 a592a061-630c-0410-9148-cb99ea01b6c8
35 lines
972 B
Bash
Executable File
35 lines
972 B
Bash
Executable File
#!/bin/bash
|
|
#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}*
|
|
|
|
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
|
|
if which wmctrl xvkbd bash xterm python xclip
|
|
then
|
|
|
|
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 xclip
|
|
fi
|