Command Line Building

The Greenstone Developer's Guide has detailed step by step instructions on building collections from the command line. Here we just give a quick overview.

Windows
cd "C:\Program Files\greenstone" setup.bat perl -S mkcol.pl mycoll cd collect\mycoll perl -S import.pl mycoll perl -S buildcol.pl mycoll
 * Open up a DOS prompt
 * Navigate to the greenstone directory
 * Set up the greenstone environment
 * Make a new collection (called mycoll)
 * Change to the mycoll directory
 * Collect your documents and put them into the import directory
 * Configure the collection by editing etc\collect.cfg
 * Import the source documents into greenstone archive format
 * Build the indexes and classifiers for the collection
 * Make the collection "live" by deleting the index directory and rename the building directory to index

Linux/Mac OS X
cd ".../greenstone" source setup.bash mkcol.pl mycoll cd collect/mycoll import.pl mycoll buildcol.pl mycoll rm -r index; mv building index
 * Open up a terminal
 * Navigate to the greenstone directory
 * Set up the greenstone environment
 * Make a new collection (called mycoll)
 * Change to the mycoll directory
 * Collect your documents and put them into the import directory
 * Configure the collection by editing etc/collect.cfg
 * Import the source documents into greenstone archive format
 * Build the indexes and classifiers for the collection
 * Make the collection "live" by deleting the index directory and rename the building directory to index

Using the GLI with command line building
In some circumstances you may want to use the Librarian Interface to design your collection, then actually build it using command line building. When you click "Create Collection" in the GLI, its carrying out the last three steps: import, buildcol, and renaming building to index. So you can do the earlier steps using the Librarian Interface, and then import and build on the command line. If you are generating archive files by hand, then you will need to do this as you will not be able to use the Librarian Interface to "build" the collection.