]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - install-dylibs.sh
fix icon
[xonotic/netradiant.git] / install-dylibs.sh
index 12d0bbb5b09c07a6d8ae24a12a365de43498307f..107e477d9b896dfde60dce2833c492c6729d878c 100644 (file)
@@ -9,14 +9,30 @@ set -ex
 finkgetdeps()
 {
        otool -L "$1" | grep /sw/lib | while read -r LIB STUFF; do
+               [ -z "${LIB##*:}" ] && continue # first line
                [ -f "$INSTALLDIR/${LIB##*/}" ] && continue
                cp -vL "$LIB" "$INSTALLDIR"
-               finkgetdeps "$INSTALLDIR/${LIB##*/}"
+               finkgetdeps "$LIB"
        done
 }
 
 finkgetdeps "$INSTALLDIR/radiant.ppc"
 echo Warning: this only works if only ONE version of gtk-2.0 and pango is installed
-cp -vL /sw/lib/gtk-2.0/*/loaders/libpixbufloader-bmp.so "$INSTALLDIR/"
-cp -vL /sw/lib/pango/*/modules/pango-basic-fc.so "$INSTALLDIR/"
-cp -vL /sw/lib/pango/*/modules/pango-basic-x.so "$INSTALLDIR/"
+
+for LIB in /sw/lib/gtk-2.0/*/loaders/libpixbufloader-bmp.so; do
+       LAST=$LIB
+done
+cp -L "$LAST" "$INSTALLDIR"
+finkgetdeps "$LAST"
+
+for LIB in /sw/lib/pango/*/modules/pango-basic-fc.so; do
+       LAST=$LIB
+done
+cp -L "$LAST" "$INSTALLDIR"
+finkgetdeps "$LAST"
+
+for LIB in /sw/lib/pango/*/modules/pango-basic-x.so; do
+       LAST=$LIB
+done
+cp -L "$LAST" "$INSTALLDIR"
+finkgetdeps "$LAST"