On Thu, Jan 10, 2019 at 12:22 PM David Haslam <dfh...@protonmail.com> wrote:
> I was rather hoping that a tool that takes just the ModuleName as its > parameter might be available. > > If we can have > mkfastmod ModuleName > Creating indexes is a SWORD-specific feature > and > mod2zmod ModuleName > Compressing a module is a SWORD-specific feature > then why not one like > zipmod ModuleName > that finds the right files by looking up the path in .conf file? > Creating an archive from known file paths is a standard feature of the operating system you're working with or its default utilities. There's nothing really here for the library to do. That said, here's a Python script that will do exactly what you asked for. https://github.com/greg-hellings/sword-helpers It requires that you have the Sword Python bindings in place. --Greg > > David > > Sent from ProtonMail Mobile > > > On Thu, Jan 10, 2019 at 18:13, Dudeck, John <john.dud...@sim.org> wrote: > > David, here's a snippet from my bat files that I use for creating modules. > The zip files import into AndBible without problem. > > ======================================== > rem usage: OSIS2sword-bibles sourcepath/filename > set modname=%~n1 > > [snip] > > rem create zip file > rem delete any previous zip > del "%modname%.zip" > rem (uses zip.exe from > http://downloads.sourceforge.net/gnuwin32/zip-3.0-setup.exe) > "c:Program Files (x86)GnuWin32 inzip.exe" -r -u "%modname%.zip" mods.d* > modules* > ======================================== > > > > > I normally use the Xiphos Module Manager (Maintenance | Archive) to > create a compressed Zip > > archive of a selected module. > > > > Is there an equivalent Sword Utility to perform the same task in a > command shell ? > > > > Regards, > > > > David > > > > Sent from ProtonMail Mobile > > John Dudeck > Programmer at Editions Cle Lyon, France > john.dud...@sim.org j...@editionscle.com > -- > Table saw: A large stationary power tool commonly used to launch wood > projectiles for testing wall integrity. > > > > > _______________________________________________ > sword-devel mailing list: sword-devel@crosswire.org > http://www.crosswire.org/mailman/listinfo/sword-devel > Instructions to unsubscribe/change your settings at above page
_______________________________________________ sword-devel mailing list: sword-devel@crosswire.org http://www.crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page