[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 |
|
---|
[28835] | 18 | 2. Compile up custom ant taskdefs that the release kit relies on:
|
---|
| 19 |
|
---|
| 20 | pushd shared\core\ant-tasks\greenstone
|
---|
| 21 | ant
|
---|
| 22 | popd
|
---|
| 23 |
|
---|
| 24 | pushd shared\core\ant-installer
|
---|
| 25 | ant
|
---|
| 26 | popd
|
---|
| 27 |
|
---|
| 28 | 3. Create a snapshots\expeditee folder
|
---|
| 29 |
|
---|
| 30 | 4. Create the file "snapshots\expeditee\rke-build.properties". It should contain:
|
---|
| 31 | version:v1.0
|
---|
[28825] | 32 | projectname:Expeditee
|
---|
| 33 | <empty newline>
|
---|
| 34 |
|
---|
| 35 | For 64 bit linux it should contain:
|
---|
[28835] | 36 | version:v1.0
|
---|
[28825] | 37 | projectname:Expeditee
|
---|
[28835] | 38 | x64:true
|
---|
[28825] | 39 | <empty newline>
|
---|
| 40 |
|
---|
| 41 |
|
---|
| 42 |
|
---|
| 43 | B. Each time you want to run the release-kit:
|
---|
| 44 |
|
---|
| 45 | Set the environment:
|
---|
| 46 | 1. Add SVN\bin to the PATH
|
---|
| 47 | 2. Set ANT_HOME and add ANT_HOME\bin to the PATH
|
---|
| 48 | 3. Set JAVA_HOME to JDK 1.8 and add JAVA_HOME\bin to the PATH
|
---|
| 49 |
|
---|
[28831] | 50 | 4. If you're on Windows, run the vcvars.bat file of your Microsoft Visual Studio.
|
---|
| 51 |
|
---|
| 52 | My windows compile environment batch file looks like:
|
---|
| 53 | set ANT_HOME=C:\Research\apache-ant-1.8.2
|
---|
| 54 | set JAVA_HOME=C:\Program Files\Java\jdk1.8.0
|
---|
| 55 | PATH=C:\Research\ant\bin;%JAVA_HOME%\bin;c:\Program Files\Subversion\bin;%PATH%
|
---|
| 56 |
|
---|
| 57 | call "C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\SetEnv.cmd"
|
---|
| 58 | call "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat"
|
---|
| 59 |
|
---|
| 60 | (Microsoft SDK is necessary for the windows.h header I think. It may not be needed for the Expeditee release kits.)
|
---|
| 61 |
|
---|
| 62 | 5. Add your expeditee-release-kits\bin to the PATH.
|
---|
[28825] | 63 | E.g. on Windows
|
---|
| 64 | cd c:\Research\Nightly\tools\expeditee-release-kits\bin
|
---|
| 65 | set PATH=%CD%;%PATH%
|
---|
| 66 |
|
---|
| 67 | E.g. on Linux/Mac:
|
---|
| 68 | export PATH=/Volumes/Research/jts21/expeditee-release-kits/bin:$PATH
|
---|
| 69 |
|
---|
| 70 | Toro is the Mac we use and JDK1.8 is located in /Volumes/Research
|
---|
| 71 | Jeremy's Linux under his jts21 account is what's used to generate the Linux binary.
|
---|
| 72 |
|
---|
[28831] | 73 | (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] | 74 |
|
---|
| 75 | 6. Go to your snapshots\expeditee folder and run "rke":
|
---|
| 76 | cd snapshots\expeditee
|
---|
| 77 | rke
|
---|
| 78 |
|
---|