[28825] | 1 | Preliminaries:
|
---|
| 2 |
|
---|
| 3 |
|
---|
| 4 | You will need to have installed:
|
---|
| 5 | 1. SVN
|
---|
| 6 | 2. Ant
|
---|
| 7 | 3. JDK 1.8 for Expeditee
|
---|
[28831] | 8 | (4. For the Windows release-kits, you will further need Microsoft Visual Studio.)
|
---|
[28825] | 9 |
|
---|
[28831] | 10 |
|
---|
| 11 |
|
---|
| 12 | A. One-off steps
|
---|
| 13 |
|
---|
[28825] | 14 | 1. Check out the expeditee release kits:
|
---|
| 15 | svn co http://svn.greenstone.org/other-projects/expeditee-release-kits
|
---|
| 16 |
|
---|
| 17 | 2. Create a snapshots\expeditee folder
|
---|
| 18 |
|
---|
| 19 | 3. Create the file "snapshots\expeditee\rke-build.properties". It should contain:
|
---|
| 20 | version:1
|
---|
| 21 | projectname:Expeditee
|
---|
| 22 | <empty newline>
|
---|
| 23 |
|
---|
| 24 | For 64 bit linux it should contain:
|
---|
| 25 | version:1
|
---|
| 26 | projectname:Expeditee
|
---|
| 27 | x64:true*
|
---|
| 28 | <empty newline>
|
---|
| 29 |
|
---|
| 30 |
|
---|
| 31 |
|
---|
| 32 | B. Each time you want to run the release-kit:
|
---|
| 33 |
|
---|
| 34 | Set the environment:
|
---|
| 35 | 1. Add SVN\bin to the PATH
|
---|
| 36 | 2. Set ANT_HOME and add ANT_HOME\bin to the PATH
|
---|
| 37 | 3. Set JAVA_HOME to JDK 1.8 and add JAVA_HOME\bin to the PATH
|
---|
| 38 |
|
---|
[28831] | 39 | 4. If you're on Windows, run the vcvars.bat file of your Microsoft Visual Studio.
|
---|
| 40 |
|
---|
| 41 | My windows compile environment batch file looks like:
|
---|
| 42 | set ANT_HOME=C:\Research\apache-ant-1.8.2
|
---|
| 43 | set JAVA_HOME=C:\Program Files\Java\jdk1.8.0
|
---|
| 44 | PATH=C:\Research\ant\bin;%JAVA_HOME%\bin;c:\Program Files\Subversion\bin;%PATH%
|
---|
| 45 |
|
---|
| 46 | call "C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\SetEnv.cmd"
|
---|
| 47 | call "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat"
|
---|
| 48 |
|
---|
| 49 | (Microsoft SDK is necessary for the windows.h header I think. It may not be needed for the Expeditee release kits.)
|
---|
| 50 |
|
---|
| 51 | 5. Add your expeditee-release-kits\bin to the PATH.
|
---|
[28825] | 52 | E.g. on Windows
|
---|
| 53 | cd c:\Research\Nightly\tools\expeditee-release-kits\bin
|
---|
| 54 | set PATH=%CD%;%PATH%
|
---|
| 55 |
|
---|
| 56 | E.g. on Linux/Mac:
|
---|
| 57 | export PATH=/Volumes/Research/jts21/expeditee-release-kits/bin:$PATH
|
---|
| 58 |
|
---|
| 59 | Toro is the Mac we use and JDK1.8 is located in /Volumes/Research
|
---|
| 60 | Jeremy's Linux under his jts21 account is what's used to generate the Linux binary.
|
---|
| 61 |
|
---|
[28831] | 62 | (6. If you have any file-locking issues, you may want to delete the contents of the snapshots\expeditee folder, all EXCEPT the rke-build.properties file)
|
---|
[28825] | 63 |
|
---|
| 64 | 6. Go to your snapshots\expeditee folder and run "rke":
|
---|
| 65 | cd snapshots\expeditee
|
---|
| 66 | rke
|
---|
| 67 |
|
---|