]> git.lyx.org Git - lyx.git/blob - development/keystest/lyx_make.sh
Rename the minted 'lang' external template option as 'language'
[lyx.git] / development / keystest / lyx_make.sh
1 #!/bin/bash
2 #development/keystest/lyx_make.sh [--update]
3 #This script runs LyX (and possibly updates), starts spamming it with hundreds of 
4 #keypresses, and logs all output, including backtraces to development/keystest/out/GDB .
5 #Use report.sh to generated the more useful bug reports in development/keystest/out/{or}*
6
7 LT=development/keystest
8
9 if ! [ -d $LT ]; then
10  echo lyx_make.sh is supposed to be in the root of the lyx svn tree, eg. development/keystest/lyx_make.sh. 
11 fi
12
13 mkdir -p $LT/out
14 if which wmctrl xvkbd bash xterm python xclip
15 then 
16
17  if [ a"$1" == a--update ]; then
18   svn up
19   ./autogen.sh && ./configure --enable-debug -- && nice -18 make && 
20         if [ ! a"$2" == a"0"  ]
21         then
22                 bash $LT/autolyx 
23         fi
24  else
25   DBG=`src/lyx --version 2>&1 | grep C++.Compiler.flags|grep -- -g`;
26   if [ -z "$DBG" ]; then echo Wrong build of LyX binary. ; exit; fi
27
28   bash $LT/autolyx 
29  fi
30
31 else
32  echo NEEDS the following packages: 
33  echo wmctrl xvkbd bash xterm python xclip
34 fi