From: Rudolf Polzer Date: Tue, 15 Jan 2013 10:13:32 +0000 (+0100) Subject: updates to install-dlls-fedora.sh by maci and me X-Git-Tag: xonotic-v0.7.0~4 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=48621e6a1c80a9850f78c161a46114e5b4803568;p=xonotic%2Fnetradiant.git updates to install-dlls-fedora.sh by maci and me --- diff --git a/install-dlls-fedora.sh b/install-dlls-fedora.sh index dc39cab1..5f882294 100755 --- a/install-dlls-fedora.sh +++ b/install-dlls-fedora.sh @@ -1,5 +1,5 @@ -#!/bin/bash -set -ex +#!/bin/sh +set -x DLL_PATH=/usr/i686-w64-mingw32/sys-root/mingw/bin @@ -7,184 +7,24 @@ cd install STARTDIR=`pwd` -function COPYDEPS() +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)'` + 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)' || true` 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 + basename -a "$STARTDIR"/*.dll | grep -v "*.dll"|sort > "$STARTDIR"/.HAVES + if ! cat "$STARTDIR"/.HAVES | grep "$DEP" >/dev/null ;then + cp -v "$DLL_PATH"/"$DEP" "$STARTDIR" 2>/dev/null + COPYDEPS "$DLL_PATH"/"$DEP" fi - rm -f $STARTDIR/.HAVES + rm -f "$STARTDIR"/.HAVES done fi - } - for i in *.exe;do - COPYDEPS $i; + 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 -