Tiny Core Linux

General TC => Programming & Scripting - Unofficial => Topic started by: gutmensch on July 30, 2012, 02:28:20 PM

Title: Dependency listing for directories and mounted extensions
Post by: gutmensch on July 30, 2012, 02:28:20 PM
Heyho guys,

this time sharing with you a dependency listing script for a directory or a mounted extension (under /tmp/tcloop/). It checks for needed libraries, needed interpreters and some other stuff.

example usage:
Code: [Select]
$ sudo ./lsdep thunderbird

Running dependency check, please wait... done.
Showing a maximum of 3 possible alternatives.
'ext1.tcz | ext2.tcz' means you only need one.

=== Probably needed extensions for thunderbird: ===
GConf.tcz (missing)
ORBit2.tcz (missing)
Xlibs.tcz (installed)
Xorg-7.6-lib.tcz (installed) | Xorg-7.5-lib.tcz (missing)
atk.tcz (installed)
cairo.tcz (installed)
dbus-glib.tcz (installed)
dbus.tcz (installed)
expat2.tcz (installed)
fontconfig.tcz (installed)
gdk-pixbuf2.tcz (installed)
glib2.tcz (installed)
gnome-vfs.tcz (missing)
gtk2.tcz (installed)
libasound.tcz (installed)
libffi.tcz (installed)
libnotify.tcz (installed)
libxcb.tcz (installed)
pango.tcz (installed)
pixman.tcz (installed)

=== Possibly recommended extensions for thunderbird: ===
python.tcz (missing)
shared-mime-info.tcz (installed)

instead of "thunderbird" you can also give any existing directory as parameter and it should tell you at least basic needed extensions for this specific directory/files.

comments and improvement ideas always welcome.