[Starkit] Re: dqkit
Wojciech Kocjan
wojciech at kocjan.org
Wed Jan 14 11:25:08 CET 2004
Guaca Mole wrote:
> You mention you knoe the sdx utility. Why dont use it
> to unpack the dqit, remove anything you dont need and
> pack again? that saves you from having to recompile
> anything.
This is not exactly true. First of all, the packages are compiled
static, not linked in the vfs. This means that they cannot be removed.
What, however, can be removed is the iwidgets library in the vfs. To
save some space, it should be unwrapped, the executable should be
stripped from the vfs layer, and wrapped again. This should save about
200kB without recompiling everything.
I'm only guessing that stripping the vfs layer would require finding the
beginning of vfs layer, probably something like this should work (I'm
just improvising now :-):
set binary ./dqkit.exe
set fh [open $binary r]; fconfigure $fh -translation binary
set fc [read $fh]; close $fh
regsub "LJ.{4,10}<root>.*\$" $fc "" fc
set fh [open $binary w]; fconfigure $fh -translation binary
puts -nonewline $fh $fc; close $fh
--
WK
More information about the Starkit
mailing list