Difference between revisions of "Zipped modules"

From CrossWire Bible Society
Jump to: navigation, search
m
m (updated to use the -D flag)
Line 3: Line 3:
 
JSword front-ends also require (for the moment at least) having zipped modules available.  
 
JSword front-ends also require (for the moment at least) having zipped modules available.  
  
It is also helpful for people who have no direct access to the Internet or who live in countries with monitored access to the Internet to be able to download (and possibly distribute) zipped modules. This is a zipped archive of a module in the file and directory layout used in the local module directory. Note: only include files in the zip.
+
It is also helpful for people who have no direct access to the Internet or who live in countries with monitored access to the Internet to be able to download (and possibly distribute) zipped modules. This is a zipped archive of a module in the file and directory layout used in the local module directory.  
  
 
To create a zipped module of an uncompressed GenBook do this:
 
To create a zipped module of an uncompressed GenBook do this:
  
 
  cd ~ftp/pub/sword
 
  cd ~ftp/pub/sword
  zip zip/mybook.zip mods.d/mybook.conf modules/genbook/rawgenbooks/mybook/*
+
  zip -r -D zip/mybook.zip mods.d/mybook.conf modules/genbook/rawgenbooks/mybook
  
If the module contains subdirectories:
+
-r finds all files under the specified directory<br/>
 
+
-D only include files in the zip
cd ~ftp/pub/sword
 
zip zip/mybook.zip mods.d/mybook.conf $(find modules/genbook/rawgenbooks/mybook -type f)
 
  
 
== xulsword ==
 
== xulsword ==

Revision as of 01:56, 18 August 2015

Some of the smaller devices running a sword front-end might not not have a network enabled module manager or network use might be slow and expensive. Users of these devices need to download their modules as zipped files and unzip them in the right place - e.g. a SD card.

JSword front-ends also require (for the moment at least) having zipped modules available.

It is also helpful for people who have no direct access to the Internet or who live in countries with monitored access to the Internet to be able to download (and possibly distribute) zipped modules. This is a zipped archive of a module in the file and directory layout used in the local module directory.

To create a zipped module of an uncompressed GenBook do this:

cd ~ftp/pub/sword
zip -r -D zip/mybook.zip mods.d/mybook.conf modules/genbook/rawgenbooks/mybook

-r finds all files under the specified directory
-D only include files in the zip

xulsword

A new Windows file extension has been allocated for xulsword zipped modules, such that drag & drop of a file with extension .xsm installs the module automatically. xulsword was developed for countries with monitored Internet access very much in mind. At present, this feature is used only for the newer modules (version 3.0) that are fully compatible with SWORD. See also Module Repositories#Institute_for_Bible_Translation.