X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=install-dylibs.sh;h=6b9e5303af8aef09050019dc27c5fb7d86fe4d89;hp=cdb7dc73801b23615fc408637503df4c2b0e1a07;hb=a7445040d9648f73613fb4e89b614f1993ce9e64;hpb=71562074b6b78aa5edaf908b24b00c75fcc5fe78 diff --git a/install-dylibs.sh b/install-dylibs.sh old mode 100644 new mode 100755 index cdb7dc73..6b9e5303 --- a/install-dylibs.sh +++ b/install-dylibs.sh @@ -7,6 +7,8 @@ set -ex : ${INSTALLDIR:=.} : ${EXE:=ppc} : ${MACLIBDIR:=/sw/lib} +: ${CAT:=cat} + finkgetdeps() { @@ -18,23 +20,49 @@ finkgetdeps() done } + 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" - -for LIB in "$MACLIBDIR"/pango/*/modules/pango-basic-x.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" +} + +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" + +$CAT > "$INSTALLDIR/../netradiant.sh" <