1999-04-18 13:16:29 +00:00
|
|
|
|
#!/bin/bash
|
|
|
|
|
# WINE Installation script
|
|
|
|
|
|
|
|
|
|
# Mar 31 1999 - Ove K<>ven
|
|
|
|
|
# First version
|
2000-02-25 20:51:09 +00:00
|
|
|
|
# Dec 9 1999 - Ove K<>ven
|
|
|
|
|
# require Xpm
|
|
|
|
|
# Feb 25 2000 - Ove K<>ven
|
|
|
|
|
# auto-add /usr/local/lib to /etc/ld.so.conf
|
2000-03-04 19:13:52 +00:00
|
|
|
|
# Mar 2 2000 - Ove K<>ven
|
|
|
|
|
# source rather than grep config.cache
|
|
|
|
|
# use sourced config.cache to start ldconfig
|
|
|
|
|
# reconfigure if config.cache doesn't exist
|
2000-04-08 20:20:21 +00:00
|
|
|
|
# Mar 30 2000 - Ove K<>ven
|
|
|
|
|
# autoconfigure no-windows installs
|
|
|
|
|
# do not install registry on real-windows installs
|
|
|
|
|
# some support for binary package installs
|
|
|
|
|
# set and tell user about LD_LIBRARY_PATH if necessary
|
|
|
|
|
# set EXTRA_LD_LIBRARY_PATH in wine.conf
|
2000-04-15 20:37:14 +00:00
|
|
|
|
# Apr 9 2000 - Ove K<>ven
|
|
|
|
|
# make root's registry global (system-default)
|
2000-05-09 22:32:42 +00:00
|
|
|
|
# May 9 2000 - Ove K<>ven
|
|
|
|
|
# use ttydrv when running regapi, so we don't have to run from X
|
|
|
|
|
# change debugger path in registry
|
1999-04-18 13:16:29 +00:00
|
|
|
|
|
2000-05-09 22:32:42 +00:00
|
|
|
|
#--- defaults (change these if you are a packager)
|
2000-04-08 20:20:21 +00:00
|
|
|
|
CONFARGS= # configure args, e.g. --prefix=/usr --sysconfdir=/etc
|
|
|
|
|
prefix=/usr/local # installation prefix
|
2000-04-15 20:37:14 +00:00
|
|
|
|
sysconfdir=$prefix/etc # where wine.conf and global registry is supposed to be
|
2000-05-09 22:32:42 +00:00
|
|
|
|
bindir=$prefix/bin # where winelib apps will be (or is) installed
|
2000-04-15 20:37:14 +00:00
|
|
|
|
libdir=$prefix/lib # where libwine.so will be (or is) installed
|
|
|
|
|
exdir=documentation/samples # where the example system.ini resides
|
2000-04-08 20:20:21 +00:00
|
|
|
|
CONF=$sysconfdir/wine.conf # default path of the wine.conf
|
|
|
|
|
BINDIST=no # whether called from a binary package config script
|
|
|
|
|
DOCONF=auto # whether to autogenerate wine.conf
|
|
|
|
|
DOWCHK=auto # whether to autoconfigure existing-windows installation
|
|
|
|
|
DOWINE=auto # whether to autoconfigure no-windows installation
|
|
|
|
|
DOREG=auto # whether to install default registry
|
2000-04-15 20:37:14 +00:00
|
|
|
|
SYSREG=yes # whether to make root's registry global (system-default)
|
2000-05-09 22:32:42 +00:00
|
|
|
|
|
|
|
|
|
# "make install" still installs the dlls into $libdir, but this may change in the future
|
|
|
|
|
# (DLLPATH should point to them if/when they are not in standard ld.so paths)
|
|
|
|
|
DLLPATH=$libdir/wine # default path of the dll .so files (except libwine.so)
|
|
|
|
|
|
|
|
|
|
# having the Wine debugger launched automatically will be a plus for us
|
|
|
|
|
DEBUGGER=$bindir/winedbg # the (installed) path of winedbg
|
|
|
|
|
HDEBUGGER=debugger/winedbg # the (non-installed) path of winedbg
|
|
|
|
|
|
|
|
|
|
# this is only for existing-windows installs
|
2000-04-15 20:37:14 +00:00
|
|
|
|
WINECONF=tools/wineconf # the path of wineconf perl script
|
2000-05-09 22:32:42 +00:00
|
|
|
|
|
|
|
|
|
# this is only for no-windows installs
|
2000-04-08 20:20:21 +00:00
|
|
|
|
WINEINI=wine.ini # the path of default wine.ini (also used by wineconf)
|
|
|
|
|
WININI=/dev/null # the path of default win.ini
|
2000-04-15 20:37:14 +00:00
|
|
|
|
SYSTEMINI=$exdir/system.ini # the path of default system.ini
|
2000-04-08 20:20:21 +00:00
|
|
|
|
REGAPI=programs/regapi/regapi # the path of regapi winelib application
|
|
|
|
|
DEFREG=winedefault.reg # the path of the registry file to be fed to regapi
|
2000-04-15 20:37:14 +00:00
|
|
|
|
# CROOT=/var/wine # the path of the fake Drive C (asks user if not set)
|
2000-05-09 22:32:42 +00:00
|
|
|
|
#--- end of defaults
|
|
|
|
|
|
|
|
|
|
# temporary files used by the installer
|
|
|
|
|
TMPCONF=/tmp/wineinstall.conf
|
|
|
|
|
TMPREG=/tmp/wineinstall.reg
|
1999-04-18 13:16:29 +00:00
|
|
|
|
|
|
|
|
|
# startup...
|
|
|
|
|
|
2000-05-09 22:32:42 +00:00
|
|
|
|
echo "WINE Installer v0.4"
|
1999-04-18 13:16:29 +00:00
|
|
|
|
echo
|
2000-04-08 20:20:21 +00:00
|
|
|
|
|
|
|
|
|
if [ "$BINDIST" = 'no' ]
|
|
|
|
|
then {
|
|
|
|
|
|
1999-04-18 13:16:29 +00:00
|
|
|
|
if ! [ -f configure ]
|
|
|
|
|
then {
|
|
|
|
|
echo "You're running this from the wrong directory."
|
|
|
|
|
echo "Change to the Wine directory and try again."
|
|
|
|
|
exit 1
|
|
|
|
|
}
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# run the configure script, if necessary
|
|
|
|
|
|
2000-03-04 19:13:52 +00:00
|
|
|
|
if [ -f config.cache ] && [ -f Makefile ] && [ Makefile -nt configure ]
|
1999-04-18 13:16:29 +00:00
|
|
|
|
then {
|
|
|
|
|
echo "I see that WINE has already been configured, so I'll skip that."
|
2000-03-04 19:13:52 +00:00
|
|
|
|
# load configure results
|
|
|
|
|
. ./config.cache
|
1999-04-18 13:16:29 +00:00
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
echo "Running configure..."
|
|
|
|
|
echo
|
2000-04-08 20:20:21 +00:00
|
|
|
|
if ! ./configure $CONFARGS
|
1999-04-18 13:16:29 +00:00
|
|
|
|
then {
|
|
|
|
|
echo
|
|
|
|
|
echo "Configure failed, aborting install."
|
|
|
|
|
rm -f config.cache
|
|
|
|
|
exit 1
|
|
|
|
|
}
|
|
|
|
|
fi
|
2000-03-04 19:13:52 +00:00
|
|
|
|
# load configure results
|
|
|
|
|
. ./config.cache
|
1999-04-18 13:16:29 +00:00
|
|
|
|
# make sure X was found
|
2000-03-04 19:13:52 +00:00
|
|
|
|
eval "$ac_cv_have_x"
|
|
|
|
|
if [ "$have_x" != "yes" ]
|
1999-04-18 13:16:29 +00:00
|
|
|
|
then {
|
|
|
|
|
echo "Install the X development headers and try again."
|
|
|
|
|
rm -f config.cache
|
|
|
|
|
exit 1
|
|
|
|
|
}
|
2000-03-04 19:13:52 +00:00
|
|
|
|
elif [ "$ac_cv_header_X11_xpm_h" != "yes" ]
|
2000-02-25 20:51:09 +00:00
|
|
|
|
then {
|
|
|
|
|
echo "Install the Xpm development headers and try again."
|
|
|
|
|
rm -f config.cache
|
|
|
|
|
exit 1
|
|
|
|
|
}
|
1999-04-18 13:16:29 +00:00
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# now do the compilation
|
|
|
|
|
|
|
|
|
|
if [ -f wine ] && [ wine -nt Makefile ]
|
|
|
|
|
then {
|
|
|
|
|
echo "Hmm, looks like WINE is already compiled. I'll skip that too, I guess."
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
echo "Compiling WINE. Grab a lunch or two, rent a video, or whatever, in the meantime..."
|
|
|
|
|
echo
|
|
|
|
|
if ! { make depend && make; }
|
|
|
|
|
then {
|
|
|
|
|
echo
|
|
|
|
|
echo "Compilation failed, aborting install."
|
|
|
|
|
exit 1
|
|
|
|
|
}
|
|
|
|
|
fi
|
|
|
|
|
echo
|
|
|
|
|
}
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# and installation, if root
|
|
|
|
|
|
|
|
|
|
if [ `whoami` != 'root' ]
|
|
|
|
|
then {
|
|
|
|
|
echo "You aren't root, so I'll skip the make install."
|
2000-04-08 20:20:21 +00:00
|
|
|
|
# setup to run from current directory
|
|
|
|
|
DLLPATH="$PWD/dlls"
|
|
|
|
|
if [ -z "$LD_LIBRARY_PATH" ]
|
|
|
|
|
then LD_LIBRARY_PATH="$PWD:$DLLPATH"
|
|
|
|
|
else LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD:$DLLPATH"
|
|
|
|
|
fi
|
|
|
|
|
export LD_LIBRARY_PATH
|
2000-07-23 13:32:04 +00:00
|
|
|
|
DEBUGGER="$PWD/$HDEBUGGER"
|
2000-04-08 20:20:21 +00:00
|
|
|
|
echo
|
|
|
|
|
echo "NOTE! To run Wine without installing, you must set the environment variable"
|
|
|
|
|
echo "LD_LIBRARY_PATH to $PWD:$DLLPATH"
|
|
|
|
|
echo "in your logon scripts."
|
1999-04-18 13:16:29 +00:00
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
echo "Now installing binaries onto the system..."
|
|
|
|
|
echo
|
|
|
|
|
if ! make install
|
|
|
|
|
then {
|
|
|
|
|
echo
|
|
|
|
|
echo "Installation failed, aborting."
|
|
|
|
|
exit 1
|
|
|
|
|
}
|
|
|
|
|
fi
|
2000-04-08 20:20:21 +00:00
|
|
|
|
if [ -f /etc/ld.so.conf ] && ! grep -qs "$libdir" /etc/ld.so.conf
|
2000-02-25 20:51:09 +00:00
|
|
|
|
then {
|
|
|
|
|
echo
|
2000-04-08 20:20:21 +00:00
|
|
|
|
echo "$libdir didn't exist in your /etc/ld.so.conf, adding it now..."
|
|
|
|
|
echo "$libdir" >>/etc/ld.so.conf
|
2000-02-25 20:51:09 +00:00
|
|
|
|
echo "Re-running ldconfig..."
|
2000-03-04 19:13:52 +00:00
|
|
|
|
eval "$ac_cv_path_LDCONFIG"
|
2000-02-25 20:51:09 +00:00
|
|
|
|
}
|
|
|
|
|
fi
|
1999-04-18 13:16:29 +00:00
|
|
|
|
}
|
|
|
|
|
fi
|
|
|
|
|
echo
|
|
|
|
|
|
2000-04-08 20:20:21 +00:00
|
|
|
|
}
|
|
|
|
|
fi # BINDIST
|
|
|
|
|
|
1999-04-18 13:16:29 +00:00
|
|
|
|
# now check whether we should generate wine.conf
|
|
|
|
|
if [ -z "$DOCONF" ]
|
|
|
|
|
then DOCONF=auto
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ "$DOCONF" = 'auto' ]
|
|
|
|
|
then {
|
|
|
|
|
# see if we already have a system wine.conf
|
2000-04-08 20:20:21 +00:00
|
|
|
|
if [ -f $CONF ]
|
1999-04-18 13:16:29 +00:00
|
|
|
|
then DOCONF=no
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ "$DOCONF" != 'no' ]
|
|
|
|
|
then {
|
|
|
|
|
if [ `whoami` != 'root' ]
|
|
|
|
|
then {
|
|
|
|
|
CONF=~/.winerc
|
|
|
|
|
if ! [ -f $CONF ]
|
|
|
|
|
then {
|
|
|
|
|
if [ "$DOCONF" != 'yes' ]
|
|
|
|
|
then {
|
|
|
|
|
echo "Since you aren't root, and there's no system wine.conf, I assume"
|
|
|
|
|
echo "you want a user-specific .winerc. Am I correct? (yes/no)"
|
|
|
|
|
while [ "$DOCONF" != 'yes' ] && [ "$DOCONF" != 'no' ]
|
|
|
|
|
do read DOCONF
|
|
|
|
|
done
|
|
|
|
|
}
|
|
|
|
|
fi
|
|
|
|
|
if [ "$DOCONF" = 'no' ]
|
2000-04-08 20:20:21 +00:00
|
|
|
|
then {
|
|
|
|
|
echo "Aborting install. Try again as root to generate a system wine.conf."
|
|
|
|
|
exit 1
|
|
|
|
|
}
|
1999-04-18 13:16:29 +00:00
|
|
|
|
fi
|
2000-04-08 20:20:21 +00:00
|
|
|
|
echo
|
1999-04-18 13:16:29 +00:00
|
|
|
|
}
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
else {
|
1999-08-04 14:26:08 +00:00
|
|
|
|
mkdir -p $sysconfdir
|
1999-04-18 13:16:29 +00:00
|
|
|
|
DOCONF=yes
|
|
|
|
|
}
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
fi
|
|
|
|
|
|
2000-04-08 20:20:21 +00:00
|
|
|
|
# generate wine.conf from existing windows install, if any
|
|
|
|
|
if [ "$DOCONF" = 'yes' ]
|
|
|
|
|
then {
|
|
|
|
|
if [ "$DOWCHK" = 'yes' ] || [ "$DOWCHK" = 'auto' ]
|
|
|
|
|
then {
|
|
|
|
|
echo "Searching for an existing Windows installation..."
|
|
|
|
|
if ! $WINECONF > $CONF 2>/dev/null
|
|
|
|
|
then {
|
|
|
|
|
rm -f $CONF
|
|
|
|
|
echo
|
|
|
|
|
echo "Windows was not found on your system, so I assume you want a Wine-only installation."
|
|
|
|
|
echo "Am I correct? (yes/no)"
|
|
|
|
|
while [ "$DOWINE" != 'yes' ] && [ "$DOWINE" != 'no' ]
|
|
|
|
|
do read DOWINE
|
|
|
|
|
done
|
|
|
|
|
if [ "$DOWINE" = 'no' ]
|
|
|
|
|
then {
|
|
|
|
|
echo "Aborting install. Make sure your Windows partition is mounted and try again,"
|
|
|
|
|
echo "or create $CONF manually by copying from $WINEINI and adapting the drive paths."
|
|
|
|
|
exit 1
|
|
|
|
|
}
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
echo
|
|
|
|
|
echo "Created $CONF using your existing Windows installation."
|
|
|
|
|
echo "You probably want to review the file, though."
|
|
|
|
|
DOWINE=no
|
|
|
|
|
}
|
|
|
|
|
fi
|
|
|
|
|
echo
|
|
|
|
|
}
|
|
|
|
|
elif [ "$DOWINE" = 'auto' ]
|
|
|
|
|
then DOWINE=yes
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
elif [ "$DOWINE" = 'auto' ]
|
|
|
|
|
then DOWINE=no
|
|
|
|
|
fi
|
|
|
|
|
|
2000-04-15 20:37:14 +00:00
|
|
|
|
# setup a no-windows installation, if necessary
|
2000-04-08 20:20:21 +00:00
|
|
|
|
if [ "$DOWINE" = 'yes' ]
|
|
|
|
|
then {
|
|
|
|
|
if [ `whoami` != 'root' ]
|
|
|
|
|
then DCROOT=~/c
|
|
|
|
|
else DCROOT=/c
|
|
|
|
|
fi
|
|
|
|
|
echo "Configuring Wine without Windows. Some fake Windows directories must be created, to"
|
|
|
|
|
echo "hold any .ini files, DLLs, and start menu entries your applications may need to install."
|
|
|
|
|
while [ -z "$CROOT" ]
|
|
|
|
|
do {
|
|
|
|
|
echo "Where would you like your fake C drive to be placed? (default is $DCROOT)"
|
|
|
|
|
read CROOT
|
|
|
|
|
if [ -z "$CROOT" ]
|
|
|
|
|
then CROOT="$DCROOT"
|
|
|
|
|
fi
|
|
|
|
|
if ! [ -d "$CROOT" ]
|
|
|
|
|
then {
|
|
|
|
|
if ! mkdir -p "$CROOT"
|
|
|
|
|
then unset CROOT
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
done
|
|
|
|
|
echo "Configuring Wine for a no-windows install in $CROOT..."
|
2000-07-16 15:43:07 +00:00
|
|
|
|
for tdir in "$CROOT/windows" "$CROOT/windows/system" "$CROOT/windows/Start Menu" "$CROOT/windows/Start Menu/Programs" "$CROOT/Common Files"
|
2000-04-08 20:20:21 +00:00
|
|
|
|
do [ -d "$tdir" ] || mkdir "$tdir"
|
|
|
|
|
done
|
|
|
|
|
[ -f "$CROOT/windows/win.ini" ] || cp "$WININI" "$CROOT/windows/win.ini"
|
|
|
|
|
[ -f "$CROOT/windows/system.ini" ] || cp "$SYSTEMINI" "$CROOT/windows/system.ini"
|
|
|
|
|
if [ "$DOCONF" = 'yes' ]
|
|
|
|
|
then {
|
2000-07-23 13:32:04 +00:00
|
|
|
|
sed "s|Path=/c\$|Path=${CROOT}|" $WINEINI > $CONF
|
2000-04-08 20:20:21 +00:00
|
|
|
|
echo "Created $CONF using default Wine configuration."
|
|
|
|
|
echo "You probably want to review the file, though."
|
|
|
|
|
}
|
|
|
|
|
fi
|
2000-07-23 13:32:04 +00:00
|
|
|
|
# now we really should install the registry
|
|
|
|
|
if [ "$DOREG" = 'auto' ]
|
|
|
|
|
then DOREG=yes
|
|
|
|
|
fi
|
2000-04-08 20:20:21 +00:00
|
|
|
|
}
|
|
|
|
|
elif [ -z "$CROOT" ]
|
|
|
|
|
then {
|
|
|
|
|
echo "Reading current Wine configuration from $CONF..."
|
|
|
|
|
CROOT=`sed -n '/^\[Drive C\]$/,/^\[.*\]$/ s/^Path=\(.*\)/\1/p' $CONF`
|
|
|
|
|
echo "Drive C is configured at $CROOT."
|
|
|
|
|
}
|
|
|
|
|
fi
|
|
|
|
|
echo
|
|
|
|
|
|
|
|
|
|
# fixup EXTRA_LD_LIBRARY_PATH
|
1999-04-18 13:16:29 +00:00
|
|
|
|
if [ "$DOCONF" = 'yes' ]
|
|
|
|
|
then {
|
2000-04-08 20:20:21 +00:00
|
|
|
|
echo "Setting EXTRA_LD_LIBRARY_PATH in .winerc to $DLLPATH..."
|
2000-07-23 13:32:04 +00:00
|
|
|
|
sed "s|EXTRA_LD_LIBRARY_PATH=.*|EXTRA_LD_LIBRARY_PATH=${DLLPATH}|" $CONF > $CONF.new
|
2000-04-08 20:20:21 +00:00
|
|
|
|
mv -f $CONF.new $CONF
|
1999-04-18 13:16:29 +00:00
|
|
|
|
echo
|
2000-04-08 20:20:21 +00:00
|
|
|
|
}
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# check whether we need to install default registry
|
|
|
|
|
# (not to be done if windows registry exists)
|
|
|
|
|
if [ "$DOREG" = 'auto' ]
|
|
|
|
|
then {
|
|
|
|
|
echo "Checking for real Windows registry..."
|
|
|
|
|
if [ -f "$CROOT/windows/system.dat" ]
|
|
|
|
|
then DOREG=no
|
|
|
|
|
elif [ -f "$CROOT/windows/system32/config/system" ]
|
|
|
|
|
then DOREG=no
|
|
|
|
|
else DOREG=yes
|
|
|
|
|
fi
|
|
|
|
|
if [ "$DOREG" = 'yes' ]
|
|
|
|
|
then echo "Not found, default Wine registry will be installed."
|
|
|
|
|
else echo "Windows registry found, will not install default Wine registry."
|
|
|
|
|
fi
|
1999-04-18 13:16:29 +00:00
|
|
|
|
echo
|
|
|
|
|
}
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# install default registry entries
|
|
|
|
|
if [ "$DOREG" = 'yes' ]
|
|
|
|
|
then {
|
2000-04-08 20:20:21 +00:00
|
|
|
|
if [ "$BINDIST" = 'no' ]
|
|
|
|
|
then {
|
|
|
|
|
echo "Compiling regapi..."
|
|
|
|
|
echo
|
|
|
|
|
(cd programs/regapi; make)
|
|
|
|
|
echo
|
|
|
|
|
}
|
|
|
|
|
fi
|
2000-05-09 22:32:42 +00:00
|
|
|
|
echo "Preparing to install default Wine registry entries..."
|
|
|
|
|
|
|
|
|
|
# create a temporary wineinstall.conf file using ttydrv,
|
|
|
|
|
# so that we don't have to run regapi under X
|
|
|
|
|
sed "s/GraphicsDriver=.*/GraphicsDriver=ttydrv/" $CONF > $TMPCONF
|
|
|
|
|
|
|
|
|
|
# create a temporary wineinstall.reg with fixed debugger path
|
2000-07-23 13:32:04 +00:00
|
|
|
|
sed "s|debugger/winedbg|${DEBUGGER}|" $DEFREG > $TMPREG
|
2000-05-09 22:32:42 +00:00
|
|
|
|
|
2000-04-08 20:20:21 +00:00
|
|
|
|
echo "Installing default Wine registry entries..."
|
1999-04-18 13:16:29 +00:00
|
|
|
|
echo
|
2000-05-09 22:32:42 +00:00
|
|
|
|
if ! $REGAPI --config $TMPCONF setValue < $TMPREG > /dev/null
|
1999-04-18 13:16:29 +00:00
|
|
|
|
then {
|
2000-05-09 22:32:42 +00:00
|
|
|
|
rm -f $TMPCONF $TMPREG
|
1999-04-18 13:16:29 +00:00
|
|
|
|
echo
|
2000-05-09 22:32:42 +00:00
|
|
|
|
echo "Registry install failed."
|
2000-02-25 20:51:09 +00:00
|
|
|
|
exit 1
|
1999-04-18 13:16:29 +00:00
|
|
|
|
}
|
2000-04-15 20:37:14 +00:00
|
|
|
|
else echo "Registry entries successfully installed."
|
|
|
|
|
fi
|
2000-05-09 22:32:42 +00:00
|
|
|
|
rm -f $TMPCONF $TMPREG
|
2000-04-15 20:37:14 +00:00
|
|
|
|
if [ "$SYSREG" = 'auto' ]
|
|
|
|
|
then SYSREG=yes
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# make root's registry global, if desired
|
|
|
|
|
if [ `whoami` = 'root' ] && [ "$SYSREG" = 'yes' ]
|
|
|
|
|
then {
|
2000-07-23 13:32:04 +00:00
|
|
|
|
[ -d ~/.wine ] || mkdir ~/.wine
|
2000-04-15 20:37:14 +00:00
|
|
|
|
if ! [ -f $sysconfdir/wine.userreg ]
|
|
|
|
|
then {
|
|
|
|
|
echo "Linking root's user registry hive to the global registry..."
|
|
|
|
|
cp ~/.wine/wine.userreg $sysconfdir/wine.userreg
|
|
|
|
|
ln -sf $sysconfdir/wine.userreg ~/.wine/wine.userreg
|
|
|
|
|
}
|
|
|
|
|
fi
|
|
|
|
|
if ! [ -f $sysconfdir/wine.systemreg ]
|
|
|
|
|
then {
|
|
|
|
|
echo "Linking root's system registry hive to the global registry..."
|
|
|
|
|
cp ~/.wine/system.reg $sysconfdir/wine.systemreg
|
|
|
|
|
ln -sf $sysconfdir/wine.systemreg ~/.wine/system.reg
|
|
|
|
|
}
|
1999-04-18 13:16:29 +00:00
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
fi
|
2000-04-15 20:37:14 +00:00
|
|
|
|
|
|
|
|
|
# it's a wrap
|
1999-04-18 13:16:29 +00:00
|
|
|
|
echo
|
|
|
|
|
echo "Installation complete for now. Good luck (this is still alpha software)."
|
2000-04-08 20:20:21 +00:00
|
|
|
|
echo "If you have problems with WINE, please read the documentation first,"
|
|
|
|
|
echo "as many kinds of potential problems are explained there."
|