3 if [ -z "$BASH_VERSION" ]; then
4 # http://article.gmane.org/gmane.editors.lyx.devel/159697
5 echo "You must use bash to run this script";
11 if [ ! -f "$i" ]; then continue; fi
13 python "$lyxdir/lib/scripts/prefs2prefs.py" -l <"$i.old" >"$i";
17 # find out where we are relative to the program directory
21 # get us into development/tools
22 if [ "$progloc" != "$pathto" ]; then
23 if ! cd "$pathto"; then
24 echo "Couldn't get to development/tools!";
30 lyxdir=${curdir%/development/tools*};
32 if ! cd "$lyxdir/lib/ui/"; then
33 echo "Couldn't get to lib/ui!";
39 if ! cd "$lyxdir/lib/bind/"; then
40 echo "Couldn't get to lib/bind!";
46 #now do the subdirectories
48 if [ ! -d "$d" ]; then continue; fi