summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-emulation/wine/files/wine-20020710-wine')
-rw-r--r--app-emulation/wine/files/wine-20020710-wine48
1 files changed, 48 insertions, 0 deletions
diff --git a/app-emulation/wine/files/wine-20020710-wine b/app-emulation/wine/files/wine-20020710-wine
new file mode 100644
index 000000000000..19b32fac8c21
--- /dev/null
+++ b/app-emulation/wine/files/wine-20020710-wine
@@ -0,0 +1,48 @@
+#!/bin/bash
+# The wine wrapper
+
+# Kindly distributed by Martin Schlemmer
+# Modified by phoen][x
+
+export INSTALLDIR="/usr/lib/wine"
+
+export WINEPREFIX="$HOME/.wine"
+
+export LD_LIBRARY_PATH="$INSTALLDIR/lib/wine:$INSTALLDIR/lib:$LD_LIBRARY_PATH"
+export WINEDLLPATH="$LD_LIBRARY_PATH"
+
+export WINE_LOADER=wine
+
+export RUNWINE="$INSTALLDIR/bin/wine"
+export REGAPI="$INSTALLDIR/bin/regapi"
+
+if [ ! -f $WINEPREFIX/config ]
+then
+ echo "!! ~/.wine/config misses"
+ echo "!! Setting up a config file"
+
+ mkdir -p $WINEPREFIX/fake_windows
+
+ # First copy in the new config file.
+ cp "$INSTALLDIR/.data/config" "$WINEPREFIX/config"
+
+ echo "!! Setting up ~/.wine/fake_windows/"
+ cp -R $INSTALLDIR/.data/fake_windows/* $WINEPREFIX/fake_windows
+
+ echo "!! Setting up default registry."
+ "$REGAPI" setValue < "$INSTALLDIR/.data/winedefault.reg" &> /dev/null
+
+ echo "!! Installation complete."
+ echo "!! Set the correct path for drive D and E in ~/.wine/config and uncomment the sections, please"
+ exit
+fi
+
+# Force the use of the more memory-efficient MSVC 5 allocator with
+# any programs that use MSVCRT. This reduces memory consumption
+# significantly.
+export __MSVCRT_HEAP_SELECT=__GLOBAL_HEAP_SELECTED,2
+
+
+PATH="$INSTALLDIR/bin:$PATH"
+
+"$RUNWINE" --debugmsg -all "$@"