en:user_advanced:command_line_building
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:user_advanced:command_line_building [2018/03/13 00:57] – kjdon | en:user_advanced:command_line_building [2023/03/13 01:46] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | |||
+ | |||
====== Command Line Building ====== | ====== Command Line Building ====== | ||
It is possible to create and build collections directly from the command line. This | It is possible to create and build collections directly from the command line. This | ||
Line 22: | Line 25: | ||
==== Set up Greenstone environment ==== | ==== Set up Greenstone environment ==== | ||
- | To begin, you will need to open a terminal window, and set up the Greenstone environment. In the terminal, change directory to the greenstone top level folder. | + | To begin, you will need to open a terminal window |
Run the following command to setup the environment: | Run the following command to setup the environment: | ||
Line 80: | Line 83: | ||
This is the process of converting the original documents, which might be a mixture of file types, into a standardised XML based format - the Greenstone archive format. Original source documents live in the import folder of a collection, while the archive documents live in the archives folder. | This is the process of converting the original documents, which might be a mixture of file types, into a standardised XML based format - the Greenstone archive format. Original source documents live in the import folder of a collection, while the archive documents live in the archives folder. | ||
- | The command to import a collection is '' | + | The command to import a collection is '' |
^Greenstone version^Import command^ | ^Greenstone version^Import command^ | ||
- | |2|perl | + | |2|perl |
- | |3|perl | + | |3|perl |
As before, you need to put in your own collection name, and change the site name if you are using a custom greenstone3 site. | As before, you need to put in your own collection name, and change the site name if you are using a custom greenstone3 site. | ||
Line 98: | Line 101: | ||
The next phase is to “build” the collection, which creates all the indexes and databases that make the collection work. | The next phase is to “build” the collection, which creates all the indexes and databases that make the collection work. | ||
- | Type '' | + | Type '' |
For now, stick to the defaults by typing | For now, stick to the defaults by typing | ||
^Greenstone version^Build command^ | ^Greenstone version^Build command^ | ||
- | |2|perl | + | |2|perl |
- | |3|perl | + | |3|perl |
Again, don't worry about the “progress report” text that scrolls past. | Again, don't worry about the “progress report” text that scrolls past. | ||
Line 115: | Line 118: | ||
^Greenstone version^Activate command^ | ^Greenstone version^Activate command^ | ||
- | |2|perl | + | |2|perl |
- | |3|perl | + | |3|perl |
Or manually: | Or manually: | ||
Line 133: | Line 136: | ||
==== Create a collection ==== | ==== Create a collection ==== | ||
- | To create the '' | + | To create the '' |
the full list of options, which you can also view [[script_options# | the full list of options, which you can also view [[script_options# | ||
Line 146: | Line 149: | ||
^Greenstone version^mkcol command^ | ^Greenstone version^mkcol command^ | ||
- | |2|perl -S mkcol.pl | + | |2|perl -S mkcol.pl |
- | |3|perl -S mkcol.pl -site localsite | + | |3|perl -S mkcol.pl -site localsite |
Line 201: | Line 204: | ||
(like [[en: | (like [[en: | ||
the [[script_options|scripts and their options]] to get an idea of what else is available. | the [[script_options|scripts and their options]] to get an idea of what else is available. | ||
- | |||
en/user_advanced/command_line_building.txt · Last modified: 2023/03/13 01:46 by 127.0.0.1