Link in wine fonts when running from the source tree

Richard Cohen richard at daijobu.co.uk
Sun Oct 9 05:05:51 CDT 2005


Makes sure we get a decent System font.

Changelog:
Link in wine fonts when running from the source tree

Richard.
-------------- next part --------------
? tools/winemaker.0
? tools/winemaker.winewrap
Index: tools/wineprefixcreate.in
===================================================================
RCS file: /home/wine/wine/tools/wineprefixcreate.in,v
retrieving revision 1.11
diff -u -p -r1.11 wineprefixcreate.in
--- tools/wineprefixcreate.in	15 Aug 2005 14:53:35 -0000	1.11
+++ tools/wineprefixcreate.in	9 Oct 2005 10:02:26 -0000
@@ -41,6 +41,7 @@ datadir="@datadir@/wine"
 
 do_wait=0
 quiet=0
+use_wine_tree=0
 
 while [ $# -gt 0 ]
 do
@@ -65,6 +66,7 @@ do
             topdir=`cd "$2" && pwd`
             if [ -x "$topdir/server/wineserver" ]
             then
+                use_wine_tree=1
                 WINELOADER="$topdir/wine"
                 WINESERVER="$topdir/server/wineserver"
                 if [ -n "$LD_LIBRARY_PATH" ]
@@ -184,6 +186,12 @@ cp "$datadir/wine.inf" "$CROOT/windows/i
 export WINEPREFIX
 "${WINELOADER:-wine}" rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 128 wine.inf
 
+if [ $use_wine_tree = 1 ]
+then
+    # Link the fonts
+    ln -s "$topdir"/fonts/*.fon "$topdir"/fonts/marlett.ttf "$CROOT/windows/fonts"
+fi
+
 # Wait for the wineserver to finish
 
 if [ $do_wait = 1 ]


More information about the wine-patches mailing list