[sword-devel] How to zip module files
NF
lzj369 at gmail.com
Fri Feb 29 11:05:47 MST 2008
Thanks Kermit and DM!
I was able to make it work. It is somehow platform independent.
I used cygwin on windows xp. The zip comes with Cygwin will default to
include directoy into the entires table.
To zip, I have to use the -D swith so it can ignore directories.
zip -D -r kjv.zip mods.d modules
Having said that, I believe, at least JSWORD spi should be modified to
support directory entries in the zip file, which is every popular in
windows programs like winzip.7zip.
Thanks a lot!
Zj Li
On Fri, Feb 29, 2008 at 2:05 AM, Kermit Kiser <bsv at kermitkiser.com> wrote:
>
> Hi NF;
>
> I ran into the same problem recently when trying to do this on a Windows XP
> system. Here is what I found:
>
> 7-zip worked OK to build the mods.d.tar.gz file but will not build an
> acceptable zip file for distribution. (May be a UNIX vs Win issue.)
>
> Info-Zip windows GUI WiZ works OK to build a zip file if the mods.d and
> modules directories are placed in the root directory first.
>
> -- KK
>
> PS: Note that the Sword module installer requires an anonymous FTP server
> to distribute the zipped modules while the JSword installer requires an HTTP
> server to distribute the modules. All the service providers I checked with
> said that anonymous FTP is a security risk and they would only provide it on
> a dedicated IP at much higher cost. I don't really buy the security risk
> argument, but the money issue speaks strong. If this list votes on
> enhancement requests, please add my vote to allow Sword to use HTTP
> downloads. Thanks!
>
>
>
>
> NF wrote:
> Thanks, DM!
>
> I have done the editor to edit and generate the compressed module file
> through a click. It works fine. (Still prototype though.) It also
> supports importing existing modules into the editor.
>
> Right now, when I try to package the module and conf to a zip file so
> I can test export function as well as downloading, the program
> fails(jsword 1.5 api).
>
> Through debugger, I noticed that when it tries to unzip the zip file,
> it treat mods.d and other module structure (module, text, ztext, ....)
> as files instead of directories. thus the unzip operation failed.
>
> How do you run the simple recursive zip? That is what I am asking...
>
> God Bless!
>
> ZJ
>
>
> On Thu, Feb 28, 2008 at 8:03 PM, DM Smith <dmsmith555 at yahoo.com> wrote:
>
>
> ZJ,
> I'm not sure what you mean by zip? A module can be compressed with
> mod2zmod. This program will compress the module internally. Both Sword
> and JSword can read them. JSword at this time cannot create modules of
> any type.
>
> We also package the modules parts into a zip file, but that just a
> simple recursive zip.
>
> Hope this helps.
>
> In Him,
> DM
>
>
>
> On Feb 28, 2008, at 4:43 PM, NF wrote:
>
> > Hi,
> >
> > I have being preparing make modules for sword platform.
> >
> > One thing is bugging me: my zip file does not work!
> >
> > I used 7zip and also winzip to zip the conf and moudle files. I can
> > tell the the layout of the files are the same as what I downloaded
> > from sword rawzip folder.
> >
> > I tried to use jsword, it tries to create mods.d as file, also, other
> > directories as file, instead of directory.
> >
> > So instead of telling me to send in the files, can anyone tell me how
> > you guys zip the modules?
> >
> > thanks!
> >
> > ZJ LI
> >
> > _______________________________________________
> > sword-devel mailing list: sword-devel at 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 at 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 at 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 at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
>
More information about the sword-devel
mailing list