]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
support more locations for pixbufloader-bmp
authorRudolf Polzer <divverent@xonotic.org>
Sat, 14 May 2011 16:37:52 +0000 (18:37 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sat, 14 May 2011 16:37:52 +0000 (18:37 +0200)
install-dylibs.sh

index 798a7d142adcfe1e00af7757efe3fdff85d391f8..9f4e3e2b9a349b64c9915073b3dcf49c1cd7b8e8 100755 (executable)
@@ -24,19 +24,25 @@ finkgetdeps()
 finkgetdeps "$INSTALLDIR/radiant.$EXE"
 echo Warning: this only works if only ONE version of gtk-2.0 and pango is installed
 
-for LIB in "$MACLIBDIR"/gtk-2.0/*/loaders/libpixbufloader-bmp.so; do
+LAST=
+for LIB in "$MACLIBDIR"/gtk-2.0/*/loaders/libpixbufloader-bmp.so "$MACLIBDIR"/gdk-pixbuf-2.0/*/loaders/libpixbufloader-bmp.so; do
+       [ -f "$LIB" ] || continue
        LAST=$LIB
 done
 cp -L "$LAST" "$INSTALLDIR"
 finkgetdeps "$LAST"
 
+LAST=
 for LIB in "$MACLIBDIR"/pango/*/modules/pango-basic-fc.so; do
+       [ -f "$LIB" ] || continue
        LAST=$LIB
 done
 cp -L "$LAST" "$INSTALLDIR"
 finkgetdeps "$LAST"
 
+LAST=
 for LIB in "$MACLIBDIR"/pango/*/modules/pango-basic-x.so; do
+       [ -f "$LIB" ] || continue
        LAST=$LIB
 done
 cp -L "$LAST" "$INSTALLDIR"