Witten
Bainbridge
Nichols
HOME HELP PREFERENCES SEARCHFIGURESTABLES

The collection-building process

Step

Function

1. cd "C:\Program Files\Greenstone"

Assumes that Greenstone is installed in the default location.

2. setup.bat

This makes Greenstone programs available. On Mac or Unix, source setup.bash or source setup.csh instead, depending on the shell you are using.

3. perl –S mkcol.pl
         –creator me@cs.waikato.ac.nz mydemo

Create a skeleton framework of initial files and directories.

4. Copy source files into
C:\Program Files\Greenstone\
    collect\mydemo\import

Populate the collection with sample documents. On Windows select the files and drag them. On Mac or Unix use the cp command—and if you are copying files from a CD-ROM, you will have to use the mount command first.

5. Edit the file
C:\Program Files\Greenstone\
          collect\mydemo\etc\collect.cfg

Customize the collection by editing the collection-level metadata in the configuration file. Alter collectionname, collectionextra, and collectionicon.

6. perl –S import.pl removeold mydemo

Convert the source documents and metadata specifications to the Greenstone standard form.

7. perl –S buildcol.pl removeold mydemo

Build the indexes and data structures that make the collection work.

8. Replace the contents of the collection’s index directory with that of the building directory

On Windows, select the files and drag them. On Mac or Unix use the mv command.

  

Table 11.1: The collection-building process;