From fc9841e5c7f3fc3dd3a5bff0b45e225de520a9d7 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 14 Jan 2013 21:22:41 +0100 Subject: [PATCH] Oops, forgot this file --- install-dlls-fedora.sh | 190 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 190 insertions(+) create mode 100755 install-dlls-fedora.sh diff --git a/install-dlls-fedora.sh b/install-dlls-fedora.sh new file mode 100755 index 00000000..dc39cab1 --- /dev/null +++ b/install-dlls-fedora.sh @@ -0,0 +1,190 @@ +#!/bin/bash +set -ex + +DLL_PATH=/usr/i686-w64-mingw32/sys-root/mingw/bin + +cd install + +STARTDIR=`pwd` + +function COPYDEPS() +{ + FILE=$1 + if [[ -e $FILE ]] ;then + + DEPS=`objdump -p $FILE 2>/dev/null |grep -i "DLL Name"|sort |uniq|cut -d\ -f3 |egrep -vi '(GDI32.dll|KERNEL32.dll|USER32.dll|msvcrt.dll|MSIMG32.DLL|ole32.dll|OPENGL32.DLL|SHELL32.DLL|WS2_32.dll)'` + + for DEP in $DEPS; do + basename -a $STARTDIR/*.dll | grep -v "*.dll"|sort > $STARTDIR/.HAVES + + if [[ -z `cat $STARTDIR/.HAVES |grep $DEP` ]] ;then + cp -v $DLL_PATH/$DEP $STARTDIR 2>/dev/null + COPYDEPS $DLL_PATH/$DEP + fi + rm -f $STARTDIR/.HAVES + done + fi + +} + + +for i in *.exe;do + COPYDEPS $i; +done + + +$MKDIR $INSTALLDIR/etc/fonts +$CAT > $INSTALLDIR/etc/fonts/fonts.conf < + + + + + + + + + WINDOWSFONTDIR + + ~/.fonts + + + + + mono + + + monospace + + + + + + + sans serif + + + sans-serif + + + + + + + sans + + + sans-serif + + + + + conf.d + + + + WINDOWSTEMPDIR_FONTCONFIG_CACHE + ~/.fontconfig + + + + + 0x0020 + 0x00A0 + 0x00AD + 0x034F + 0x0600 + 0x0601 + 0x0602 + 0x0603 + 0x06DD + 0x070F + 0x115F + 0x1160 + 0x1680 + 0x17B4 + 0x17B5 + 0x180E + 0x2000 + 0x2001 + 0x2002 + 0x2003 + 0x2004 + 0x2005 + 0x2006 + 0x2007 + 0x2008 + 0x2009 + 0x200A + 0x200B + 0x200C + 0x200D + 0x200E + 0x200F + 0x2028 + 0x2029 + 0x202A + 0x202B + 0x202C + 0x202D + 0x202E + 0x202F + 0x205F + 0x2060 + 0x2061 + 0x2062 + 0x2063 + 0x206A + 0x206B + 0x206C + 0x206D + 0x206E + 0x206F + 0x2800 + 0x3000 + 0x3164 + 0xFEFF + 0xFFA0 + 0xFFF9 + 0xFFFA + 0xFFFB + + + + 30 + + + + +EOF + -- 2.39.2