CHECKING PRE-CONDITIONSChecking if version number is set...No, not setPlease specify a version numberE.g., ant -Dversion=3.03 -Dversion.minor=03 create-releaseor, ant -Dversion=trunk -Dversion.minor=03 create-releaseVersion number not setVersion number: ${version}Determining where to put the release...No release directory specified.Please specify release directory on the command line.E.g., ant -Drelease.dir=/research/me/releases/3.03 -Dmac.release.dir=/Users/me/releases/3.03 -Dwindows.release.dir=c:\research\me\releases\3.03 create-releaseRelease directorys not setRelease directory: ${release.dir}Mac release directory: ${mac.release.dir}Windows release directory: ${windows.release.dir}Checking if we are resuming from a given target...No, start from the beginningYes, resuming from ${resume.from}Determining resume mode...Mode not set, defaulting to 'fallthrough'Mode set to ${resume.mode}You have not specified a valid resume mode.Valid modes are 'fallthrough' and 'descend'.You have not specified a valid resume mode.Checking if username and password set...Not setYou have not specified a username for sshDetermining execute mode...Execute not set, defaulting to 'true'Execute set to ${execute}You have not specified a valid value for execute.Valid values are 'true' and 'false'.You have not specified a valid value for execute.Determining the branch path...Branch Path: ${branch.path}Checking that ${svn.gsdl} exists...No, does not existYes, it existsChecking that ${svn.gli} exists...No, does not existYes, it existsChecking that ${svn.indexers} exists...No, it does not existYes, it existsChecking that ${svn.documentation} exists...No, it does not existYes, it existsSome branches do not exist, or you are unable to access them from where you are. Please review the list above and create any branches that are missing, or run this script from somewhere with access to the repository.All existCurrent Month: ${current.month}Current Year: ${current.year}Usage: ant -Dversion=VERSION_NUMBER -Drelease.dir=RELEASE_DIR -Dusername=USERNAME -Dpassword=PASSWORD -Dmac.release.dir=OUTPUT_DIRECTORY [-Dresume.from=TARGET_ADDRESS] [-Dresume.mode=MODE] create-releaseThis project creates releases of Greenstone2 from the subversion repository given a version number.Each target in this project's target tree has been given an address, like so:root |-1 | |-1.1 | |-1.2 | |-2 | |-2.1 | |-2.2 etc.PARAMETERSParameters are specifiable on the command line or in build.propertiesParameters which remain static throughout the release process should be stores in build.properties:version, version.minor, release.dir, mac.release.dir, windows.release.dir, usernameOther parameters will change each time you invoke the script, specify them on the command line:resume.from, resume.modeversion=VERSION_NUMBER, where VERSION_NUMBER={x.xx|trunk}This project can either create a release from a greenstone3 branch, or from the development trunk.To create a branch release, specify the VERSION_NUMBER (e.g., 3.03), and ensure that the followingbranches exist in the repository: greenstone3/branches/VERSION_NUMBER gli/branches/VERSION_NUMBER indexers/branches/VERSION_NUMBER documentation/branches/VERSION_NUMBERTo create a trunk release, specify 'trunk' as the version number.The project will use the trunk of greenstone3, gli, indexers and documentation for the release.release.dir=RELEASE_DIRECTORYSpecifies the directory in the filesystem where the release files will be kept.resume.from=TARGET_ADDRESS, where TARGET_ADDRESS=x.y.z (e.g., 2.1.3)Allows you to specify a target address from which execution will resume.This is helpful for restarting the script after it has failed part-way through.By default, execution starts from the root target (create-release) and proceeds downwards.You can specify a different target to start from by setting the resume.from parameter.resume.mode=RESUME_MODE, where RESUME_MODE={fallthrough|descend}fallthrough (default): In fallthrough mode, execution proceeds downwards through the target tree1 -> 1.1 -> 1.2 -> 2 -> 2.1 -> 2.2 -> 3 -> 3.1 and so on.descend: In descend mode, execution descends a single branch of the target tree.For example, if resume.from was set to '2', execution would proceed thus:2 -> 2.1 -> 2.2 (exit)This is helpful when you want to debug a particular target, or fix some conditions to allow it to finishproperly, and don't want to run the whole script from the start.release.dir, mac.release.dir, windows.release.dirThe full path to the directories where release files will be stored onlinux(your machine), mac(shuttle) and windows(kohekohe).E.g., -Drelease.dir=/research/oranfry/releases/3.03E.g., -Dmac.release.dir=/Users/oranfry/releases/3.03E.g., -Dwindows.release.dir=c:\\research\\oranfry\\releases\\3.03usernameYour username for ssh from your machine to shuttle and kohekohe.You will be prompted for your password a number of times while the script executes.Creating Release '${version}'The windows compilation stage still has to be done manually.Please go to the kohekohe machine and follow the instructions found at:http://wesson.cs.waikato.ac.nz:7070/wiki/index.php/Creating_A_ReleaseDo the 'Preparation' and 'Building' sections.(Ignore the last step, which tells you where to copy the resulting files.)Then copy (scp):Windows:gsdl/bin/windows/* to Linux:${release.dir}/other-platforms/win-bin-windows
Type 'done' when you have finished.
use the unix installerdo a commandline buildfinish offtar to the release-${version} directoryuse the unix installerdo a commandline buildfinish offtar to the release-${version} directoryuse the windows installerdo a commandline buildfinish offtar to the release-${version} directorycopy to the release-${version} directorycreate release directory, if absentcheckout gsdlcheckout indexersdelete the old demo-collection greenstonere-create itCHECKING PRE-CONDITIONSChecking if version number is set...No, not setPlease specify a version numberE.g., ant -Dversion=3.03 -Dversion.minor=03 create-releaseor, ant -Dversion=trunk -Dversion.minor=03 create-releaseVersion number not setVersion number: ${version}Determining where to put the release...No release directory specified.Please specify release directory on the command line.E.g., ant -Drelease.dir=/research/me/releases/3.03 -Dmac.release.dir=/Users/me/releases/3.03 -Dwindows.release.dir=c:\research\me\releases\3.03 create-releaseRelease directorys not setRelease directory: ${release.dir}Mac release directory: ${mac.release.dir}Windows release directory: ${windows.release.dir}Checking if we are resuming from a given target...No, start from the beginningYes, resuming from ${resume.from}Determining resume mode...Mode not set, defaulting to 'fallthrough'Mode set to ${resume.mode}You have not specified a valid resume mode.Valid modes are 'fallthrough' and 'descend'.You have not specified a valid resume mode.Determining execute mode...Execute not set, defaulting to 'true'Execute set to ${execute}You have not specified a valid value for execute.Valid values are 'true' and 'false'.You have not specified a valid value for execute.Determining the branch path...Branch Path: ${branch.path}Current Month: ${current.month}Current Year: ${current.year}No need to do initial setup on the trunkInitial setup is only done when creating a release from branchesplease set the branch.path, e.g., -Dbranch.path=branches/2.75Set version number in lib/gsdlconf.hSet version number in Install.shAboutDialog.Date propertiesar: (${month.ar} ${current.year})ca: (${month.ca} de ${current.year})el: (${month.el} ${current.year})es: (${month.es} ${current.year})fr: (${month.fr} ${current.year})lv: (${month.lv} ${current.year})mr: (${month.mr} ${current.year})default: (${month.default} ${current.year})ro: (${month.ro} ${current.year})ru: (${month.ru} ${current.year})vi: (${month.vi} ${current.year})zh: (${month.zh} ${current.year})Changing version number in gli GathererChanging configuration version in gli/classes/xml/config.xmlChanging configuration version in gli/classes/xml/configRemote.xmlChanging version in /home/nzdl/gsdl-docs/Support.htmPlease update the READMEs at /home/nzdl/gsdl-docs manuallyThis can't be done automatically because the character encoding will get messed upUse these month strings:En: ${month.default} ${current.year}Fr: ${month.fr} ${current.year}Es: ${month.es} ${current.year}Ru: ${month.ru} ${current.year}You could also check all version number edits have been performed properly
Type 'done' when you have finished.