<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
<meta http-equiv="Content-Style-Type" content="text/css">
</head>
<body>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt">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.</span></font></div>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt"><br>
</span></font></div>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt">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.</span></font></div>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt"><br>
</span></font></div>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt">I guess my biggest question with your suggestion is where should the tool place the resulting zip file? Is there a standardized location?</span></font></div>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt"><br>
</span></font></div>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt">John</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt"><br>
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> I was rather hoping that a tool that takes just the ModuleName as its parameter might be
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> available. </span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">>
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> If we can have </span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> mkfastmod ModuleName</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> and</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> mod2zmod ModuleName</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> then why not one like </span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> zipmod ModuleName</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> that finds the right files by looking up the path in .conf file?</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">>
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> David</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">>
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> Sent from ProtonMail Mobile</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">>
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">>
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> On Thu, Jan 10, 2019 at 18:13, Dudeck, John <John.Dudeck@sim.org> wrote:</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> David, here's a snippet from my bat files that I use for creating modules. The zip files import
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> into AndBible without problem.</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">>
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> ========================================</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> rem usage: OSIS2sword-bibles sourcepath/filename</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> set modname=%~n1</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">>
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> [snip]</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">>
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> rem create zip file</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> rem delete any previous zip</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> del "%modname%.zip"</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> rem (uses zip.exe from http://downloads.sourceforge.net/gnuwin32/zip-3.0-setup.exe)</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> "c:Program Files (x86)GnuWin32 inzip.exe" -r -u "%modname%.zip" mods.d* modules*</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> ========================================</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">>
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">>
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">>
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> > I normally use the Xiphos Module Manager (Maintenance | Archive) to create a
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> compressed Zip</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> > archive of a selected module.</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> ></span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> > Is there an equivalent Sword Utility to perform the same task in a command shell ?</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> ></span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> > Regards,</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> ></span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> > David</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> ></span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> > Sent from ProtonMail Mobile</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">>
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> John Dudeck</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> Programmer at Editions Cle Lyon, France</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> john.dudeck@sim.org john@editionscle.com</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> --</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> Table saw: A large stationary power tool commonly used to launch wood</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> projectiles for testing wall integrity.</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> </span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">>
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">>
</span></font></div>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt"><br>
</span></font></div>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt">John Dudeck</span></font></div>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt">Programmer at Editions Cle Lyon, France</span></font></div>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt">john.dudeck@sim.org john@editionscle.com</span></font></div>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt">--</span></font></div>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt">Table saw: A large stationary power tool commonly used to launch wood
</span></font></div>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt">projectiles for testing wall integrity.</span></font></div>
<div align="left"> </div>
</body>
</html>