X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=install-dylibs.sh;h=6b9e5303af8aef09050019dc27c5fb7d86fe4d89;hp=798a7d142adcfe1e00af7757efe3fdff85d391f8;hb=b13daa752befa6586ce4dec9d8ff850aab2a8597;hpb=b2358327550a2ea9138bd25a317ed87d9e2d4641 diff --git a/install-dylibs.sh b/install-dylibs.sh index 798a7d14..6b9e5303 100755 --- a/install-dylibs.sh +++ b/install-dylibs.sh @@ -24,28 +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=$LIB -done -cp -L "$LAST" "$INSTALLDIR" -finkgetdeps "$LAST" - -for LIB in "$MACLIBDIR"/pango/*/modules/pango-basic-fc.so; do - LAST=$LIB -done -cp -L "$LAST" "$INSTALLDIR" -finkgetdeps "$LAST" +getlib() +{ + LAST= + for LIB in "$@"; do + [ -f "$LIB" ] || continue + LAST=$LIB + done + cp -L "$LAST" "$INSTALLDIR" + finkgetdeps "$LAST" +} -for LIB in "$MACLIBDIR"/pango/*/modules/pango-basic-x.so; do - LAST=$LIB -done -cp -L "$LAST" "$INSTALLDIR" -finkgetdeps "$LAST" +getlib "$MACLIBDIR"/gtk-2.0/*/loaders/libpixbufloader-bmp.so "$MACLIBDIR"/gdk-pixbuf-2.0/*/loaders/libpixbufloader-bmp.so +getlib "$MACLIBDIR"/pango/*/modules/pango-basic-fc.so +getlib "$MACLIBDIR"/pango/*/modules/pango-basic-x.so -cp -L "$MACLIBDIR"/../etc/fonts/fonts.conf "$INSTALLDIR" -cp -L "$MACLIBDIR"/../etc/fonts/fonts.dtd "$INSTALLDIR" -cp -L "$MACLIBDIR"/../etc/gtk-2.0/gdk-pixbuf.loaders "$INSTALLDIR" -cp -L "$MACLIBDIR"/../etc/pango/pangorc "$INSTALLDIR" +#cp -L "$MACLIBDIR"/../etc/fonts/fonts.conf "$INSTALLDIR" +#cp -L "$MACLIBDIR"/../etc/fonts/fonts.dtd "$INSTALLDIR" +#cp -L "$MACLIBDIR"/../etc/gtk-2.0/gdk-pixbuf.loaders "$INSTALLDIR" +#cp -L "$MACLIBDIR"/../etc/pango/pangorc "$INSTALLDIR" $CAT > "$INSTALLDIR/../netradiant.sh" <