simplify code
This commit is contained in:
parent
898cef614c
commit
9cf3816f69
|
|
@ -24,29 +24,20 @@ finkgetdeps()
|
||||||
finkgetdeps "$INSTALLDIR/radiant.$EXE"
|
finkgetdeps "$INSTALLDIR/radiant.$EXE"
|
||||||
echo Warning: this only works if only ONE version of gtk-2.0 and pango is installed
|
echo Warning: this only works if only ONE version of gtk-2.0 and pango is installed
|
||||||
|
|
||||||
LAST=
|
getlib()
|
||||||
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=
|
||||||
LAST=$LIB
|
for LIB in "$@"; do
|
||||||
done
|
[ -f "$LIB" ] || continue
|
||||||
cp -L "$LAST" "$INSTALLDIR"
|
LAST=$LIB
|
||||||
finkgetdeps "$LAST"
|
done
|
||||||
|
cp -L "$LAST" "$INSTALLDIR"
|
||||||
|
finkgetdeps "$LAST"
|
||||||
|
}
|
||||||
|
|
||||||
LAST=
|
getlib "$MACLIBDIR"/gtk-2.0/*/loaders/libpixbufloader-bmp.so "$MACLIBDIR"/gdk-pixbuf-2.0/*/loaders/libpixbufloader-bmp.so
|
||||||
for LIB in "$MACLIBDIR"/pango/*/modules/pango-basic-fc.so; do
|
getlib "$MACLIBDIR"/pango/*/modules/pango-basic-fc.so
|
||||||
[ -f "$LIB" ] || continue
|
getlib "$MACLIBDIR"/pango/*/modules/pango-basic-x.so
|
||||||
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"
|
|
||||||
finkgetdeps "$LAST"
|
|
||||||
|
|
||||||
cp -L "$MACLIBDIR"/../etc/fonts/fonts.conf "$INSTALLDIR"
|
cp -L "$MACLIBDIR"/../etc/fonts/fonts.conf "$INSTALLDIR"
|
||||||
cp -L "$MACLIBDIR"/../etc/fonts/fonts.dtd "$INSTALLDIR"
|
cp -L "$MACLIBDIR"/../etc/fonts/fonts.dtd "$INSTALLDIR"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user