[sword-devel] InstallSize entry in .conf file?

Karl Kleinpaste karl at kleinpaste.org
Mon Oct 18 04:49:38 MST 2010

David Haslam <d.haslam at ukonline.co.uk> writes:
> For a compressed Bible module, is this just the sum total of the file-sizes
> for the following files?
> nt.bzs, nt.bzv, nt.bzz, ot.bzs, ot.bzv, ot.bzz
> or is it something else?

As done for Xiphos and all CrossWire repos, it is a blunt total of file
sizes for all files in the module.

The exact manifestation is this bit of shell hackery:

data="`grep DataPath \"$conf\" | tr -d '\r' | sed -e 's;DataPath=./;;' -e '/genbook/s;/[^/]*$;;' -e '/lexdict/s;/[^/]*$;;'`"
files="`find \"$data\" -type f | sort`"
installsize="`( echo 0 ; ls -l $files | awk '{ print $5"+" }' ; echo p ) | dc`"

More information about the sword-devel mailing list