[sword-devel] Making a Zip archive of a module?

Dudeck, John John.Dudeck at sim.org
Thu Jan 10 12:05:20 MST 2019


I get your point. But that is assuming the module has been built and installed into the local Sword path. To me it doesn't seem logical that you would build the module directly in the Sword tree. I would build first, then install.

I have set up my build scripts to work in the working directory for each source, and create the output in a mods.d and modules tree under each source, and the zip file in the working directory. After building I install the module into Sword using Xiphos Module Manager (I could just copy them). I build the zip file at the same time since my script already knows the modulename.

I guess my biggest question with your suggestion is where should the tool place the resulting zip file? Is there a standardized location?

John

> I was rather hoping that a tool that takes just the ModuleName as its parameter might be
> available.
>
> If we can have
> mkfastmod ModuleName
> and
> mod2zmod ModuleName
> then why not one like
> zipmod ModuleName
> that finds the right files by looking up the path in .conf file?
>
> David
>
> Sent from ProtonMail Mobile
>
>
> On Thu, Jan 10, 2019 at 18:13, Dudeck, John <John.Dudeck at 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.dudeck at sim.org                            john at editionscle.com
> --
> Table saw: A large stationary power tool commonly used to launch wood
> projectiles for testing wall integrity.
>
>
>

John Dudeck
Programmer at Editions Cle                             Lyon, France
john.dudeck at sim.org                            john at editionscle.com
--
Table saw: A large stationary power tool commonly used to launch wood
projectiles for testing wall integrity.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20190110/6b165406/attachment.html>


More information about the sword-devel mailing list