fi
fi
+if [ "$(which wmctrl)" == "" ]; then
+ echo "You need to install wmctrl first, try:"
+ echo " sudo apt-get install wmctrl"
+ exit -1;
+fi
+
+if [ "$(which pcregrep)" == "" ]; then
+ echo "You need to install pcregrep first, try:"
+ echo " sudo apt-get install pcregrep"
+ exit -1;
+fi
+
+PROGRAM_SUFFIX=$(grep -e '#define PACKAGE ' ../../config.h | sed -e 's/#define PACKAGE "lyx\(.*\)"/\1/')
+
export XVKBD_EXE=../$XVKBD_EXE
export KEYTEST=../keytest.py
LYX_HOME=out-home
-export LYX_USERDIR=$(pwd)/$LYX_HOME/.lyx
+export LYX_USERDIR=$(pwd)/$LYX_HOME/.lyx$PROGRAM_SUFFIX
# Create locale links
export LOCALE_DIR=../locale
rm -rf "out-$t"
mkdir "out-$t"
cd "out-$t"
- if "$cmd" > test-log.txt 2>&1; then
+ if $cmd > test-log.txt 2>&1; then
echo Ok
cd ..
- rm -rf "out-$t";
+ if [ "$V" != "" ]; then rm -rf "out-$t"; fi
else
echo FAILED
cd ..