> as long as there was no wine server ( and I built with disable-lib), I
> could easyly run different wine versions (clean cvs, my own hacked
> tree, some old version, corelwine). Now even if I rename the
> executable in e.g. corelwine to "corelwine" and try to execute this,
> it will call the wineserver from the default wine tree.
Hi Uwe,
here's a sample script to run wine in place (in the CVS tree) (or any tree
with the same layout ./, dlls/ ...
you may also have to set PATH to get the right wineserver
anyway, it's tested (and widely used) on several trees *without* a
normal wine installation. it should work even with Wine being installed
but you should reverse the order in LD_LIBRARY_PATH (local wine .so:s should
be accessed before standard exec env)
HTH
#!/bin/bash
#
# a sample script to run Wine in place (inside the development tree)
# Eric Pouech (2000):
#
# this script must reside in Wine $(TOPDIR). the best way to use it is
# to create a symlink from $(TOPDIR)/xwine to $(TOPDIR)/tools/xwine
# for example:
# erato:~/wine$ ln -s tools/xwine .
XWINEPROG=`type -p $0`
WINEHOME=`dirname $XWINEPROG`
if [ -z "${LD_LIBRARY_PATH}" ] ; then
LD_LIBRARY_PATH=$WINEHOME:$WINEHOME/dlls
else
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$WINEHOME:$WINEHOME/dlls
fi
export LD_LIBRARY_PATH
#echo "home: $WINEHOME"
exec $WINEHOME/wine "$@"
--
---------------
Eric Pouech (http://perso.wanadoo.fr/eric.pouech/)
"The future will be better tomorrow", Vice President Dan Quayle