Difference between revisions of "Zipped modules"

From CrossWire Bible Society
Jump to: navigation, search
(Corrected the command to create a zip to exclude directories)
m
Line 8: Line 8:
  
 
  cd ~ftp/pub/sword
 
  cd ~ftp/pub/sword
  zip -r zip/mybook.zip mods.d/mybook.conf modules/genbook/rawgenbooks/mybook/*
+
  zip zip/mybook.zip mods.d/mybook.conf modules/genbook/rawgenbooks/mybook/*
  
 
If the module contains subdirectories:
 
If the module contains subdirectories:
  
 
  cd ~ftp/pub/sword
 
  cd ~ftp/pub/sword
  zip -r zip/mybook.zip mods.d/mybook.conf $(find modules/genbook/rawgenbooks/mybook -type f)
+
  zip zip/mybook.zip mods.d/mybook.conf $(find modules/genbook/rawgenbooks/mybook -type f)
  
 
== xulsword ==
 
== xulsword ==

Revision as of 17:31, 17 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. Note: only include files in the zip.

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

cd ~ftp/pub/sword
zip zip/mybook.zip mods.d/mybook.conf modules/genbook/rawgenbooks/mybook/*

If the module contains subdirectories:

cd ~ftp/pub/sword
zip zip/mybook.zip mods.d/mybook.conf $(find modules/genbook/rawgenbooks/mybook -type f)

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.