Index: lease-kits/lirk3/resources/ISCustomCode.java
===================================================================
--- /release-kits/lirk3/resources/ISCustomCode.java	(revision 16144)
+++ 	(revision )
@@ -1,318 +1,0 @@
-package com.installshield.greenstone3_digital_library_software.event;
-
-import java.io.*;
-import java.net.*;
-import java.util.ArrayList;
-import java.util.StringTokenizer;
-import com.installshield.event.*;
-import com.installshield.event.ui.*;
-import com.installshield.event.wizard.*;
-import com.installshield.event.product.*;
-import com.installshield.wizard.*;
-import com.installshield.wizard.service.*;
-import com.installshield.wizard.service.file.*;
-import com.installshield.wizard.awt.*;
-import com.installshield.wizard.swing.*;
-import com.installshield.wizard.console.*;
-import com.installshield.product.*;
-import com.installshield.util.*;
-import com.installshield.ui.controls.*;
-import com.installshield.database.designtime.*;
-import com.installshield.product.service.product.*;
-
-public class InstallScript
-{
-
-	/* DONE
-
-	public void onInstalled_AntBuildFiles(ISContext context) {
-
-		String productInstallLocation = context.resolveString("$P(absoluteInstallLocation)");
-		String configFile = context.resolveString("$PATH(" + productInstallLocation +", build.properties)");
-		String tomcatPort = context.resolveString("$V(START_PORT)");
-		String tomcatShutdownPort = context.resolveString("$V(SHUTDOWN_PORT)");
-		    
-		System.out.println("tomcatPort: "+tomcatPort);
-		      System.out.println("java version = "+context.resolveString("$J(java.version)"));
-		ArrayList fileLines = readInFile(configFile);
-		               
-		if (fileLines != null) {
-		    setupReplace(fileLines, "tomcat.port", tomcatPort);
-		    setupReplace(fileLines, "tomcat.shutdown.port", tomcatShutdownPort); 
-		    writeOutFile(configFile, fileLines);
-		}
-	}
-
-	public void onReplaced_AntBuildFiles(ComponentReplaceContext context) {
-		onInstalled_AntBuildFiles(context);
-	}
-
-	*/
-
-	public void onInstalled_Tomcat(ISContext context) {
-
-		/* DONE
-		// modify server.xml
-		String installLocation = context.resolveString("$P(absoluteInstallLocation)");
-		String templateServerXML = context.resolveString("$PATH(" + installLocation +", resources/tomcat/server.xml)");
-		String finalServerXML = context.resolveString("$PATH(" + installLocation +", packages/tomcat/conf/server.xml)");
-
-		String tomcatPort = context.resolveString("$V(START_PORT)");
-		String tomcatShutdownPort=context.resolveString("$V(SHUTDOWN_PORT)");
-	
-		ArrayList fileLines = readInFile(templateServerXML);
-		if (fileLines != null) {
-		    queryReplace(fileLines, "@port@", tomcatPort);
-		    queryReplace(fileLines, "@shutdown-port@", tomcatShutdownPort);
-		    writeOutFile(finalServerXML, fileLines);
-		}
-
-
-
-		// copy greenstone3.xml into tomcat directory
-		String templateGreenstone3Context = context.resolveString("$PATH(" + installLocation +", resources/tomcat/greenstone3.xml)");
-		String finalGreenstone3Context = context.resolveString("$PATH(" + installLocation +", packages/tomcat/conf/Catalina/localhost/greenstone3.xml)");
-	
-		fileLines = readInFile(templateGreenstone3Context);
-		String webDir = context.resolveString("$PATH(" + installLocation +", web)");
-		if (context.resolveString("$J(os.name)").startsWith("Windows")) {
-		    // replace \ with \\ (I think)
-		    webDir = webDir.replaceAll("\\\\", "\\\\\\\\\\\\\\\\");
-		}
-
-		if (fileLines != null) {
-		    queryReplace(fileLines, "@gsdl3webhome@", webDir);
-		    writeOutFile(finalGreenstone3Context, fileLines);
-		}
-
-		System.out.println("java version = "+context.resolveString("$J(java.version)"));
-
-	}
-    
-
-    public void onReplaced_Tomcat(ComponentReplaceContext context)
-    {
-        onInstalled_Tomcat(context);
-    }
-
-    
-	public void onInstalled_GS2BuildSetupBat(ISContext context) {
-
-		if (context.resolveString("$J(os.name)").startsWith("Windows")) {
-			String installLocation = context.resolveString("$P(absoluteInstallLocation)");
-			String setupBatFile = context.resolveString("$PATH("+ installLocation+", gs2build/setup.bat)");
-			String gsdlhome = context.resolveString("$PATH("+ installLocation+", gs2build)");
-			ArrayList fileLines = readInFile(setupBatFile);     
-			gsdlhome = gsdlhome.replaceAll("\\\\", "/");      
-			if (fileLines != null) {
-				queryReplace(fileLines, "@gsdlhome@",gsdlhome);
-				writeOutFile(setupBatFile, fileLines);
-			}
-		}
-	}
-
-
-	public void onReplaced_GS2BuildSetupBat(ComponentReplaceContext context) {
-		onInstalled_GS2BuildSetupBat(context);
-	}
-		*/
-
-    public void onInstalled_WebDirectory(ISContext context)
-    {
-	String installLocation = context.resolveString("$P(absoluteInstallLocation)");
-	// rename some jar files if Java version is 1.5
-	/*String java_ver = context.resolveString("$J(java.version)");
-            
-	if (java_ver.equals("1.5")) {
-            
-	    String xalanTmpFile = context.resolveString("$PATH(" + installLocation +", web/WEB-INF/lib/xalan.jar.tmp)");
-	    String xalanJarFile = context.resolveString("$PATH(" + installLocation +", web/WEB-INF/lib/xalan.jar)");
-	    renameFile(context,xalanTmpFile,xalanJarFile);
-	    
-	    String xercesImplTmpFile = context.resolveString("$PATH(" + installLocation +", web/WEB-INF/lib/xercesImpl.jar.tmp)");
-	    String xercesImplJarFile = context.resolveString("$PATH(" + installLocation +", web/WEB-INF/lib/xercesImpl.jar)");
-	    renameFile(context,xercesImplTmpFile,xercesImplJarFile);
-	}
-
-
-	String webDir = context.resolveString("$PATH(" + installLocation +", web)");
-	// on windows, turn the path back into linux style 
-	if (context.resolveString("$J(os.name)").startsWith("Windows")) {
-	    webDir = webDir.replaceAll("\\\\", "/");
-	}	   
-        
-	String tomcatPort = context.resolveString("$V(START_PORT)");
-        
-	// Set up global.properties
-	String templateGlobalProperties = context.resolveString("$PATH(" + installLocation +", resources/java/global.properties.in)");
-	String finalGlobalProperties = context.resolveString("$PATH(" + installLocation +", web/WEB-INF/classes/global.properties)");
-      
-        
-	ArrayList fileLines = readInFile(templateGlobalProperties);
-	if (fileLines != null) {
-	    queryReplace(fileLines, "@gsdl3home@", webDir);
-	    queryReplace(fileLines, "@tomcat.server@", "localhost");
-	    queryReplace(fileLines, "@tomcat.port@", tomcatPort);
-	    writeOutFile(finalGlobalProperties, fileLines);
-	}
-
-		
-        // Set up log4j.properties
-	String templateLog4jProperties = context.resolveString("$PATH(" + installLocation +", resources/java/log4j.properties.in)");
-	String finalLog4jProperties = context.resolveString("$PATH(" + installLocation +", web/WEB-INF/classes/log4j.properties)");
-	
-	fileLines = readInFile(templateLog4jProperties);
-	if (fileLines != null) {
-	    queryReplace(fileLines, "@gsdl3home@", webDir);
-	    writeOutFile(finalLog4jProperties, fileLines);
-	}
-        */                
-        	
-    }
-
-    public void onReplaced_WebDirectory(ComponentReplaceContext context)
-    {
-	onInstalled_WebDirectory(context);
-    }
-
-    // --------------------------------------------------
-    // General methods
-    // --------------------------------------------------
-
-    public ArrayList readInFile(String file) {
-	try {
-	    ArrayList fileLines = new ArrayList();
-	    String line = null;
-	    BufferedReader bufferedReader = new BufferedReader(new FileReader(file));
-	    while ((line = bufferedReader.readLine()) != null ) {
-		fileLines.add(line);
-	    }
-	    bufferedReader.close();
-	    return fileLines;
-	} catch (Exception e) {
-	    System.err.println("exception: "+e);
-	    return null;
-	}
-            
-    }
-        
-         
-    public void writeOutFile(String file, ArrayList fileLines) {
-	try {
-	    PrintWriter printWriter = new PrintWriter(new BufferedWriter(new FileWriter(file)));
-	    for (int i=0; i<fileLines.size(); i++) {
-		printWriter.println(fileLines.get(i));     
-	    }
-	    printWriter.flush();
-	    printWriter.close();
-	} catch (Exception e) {
-	    System.err.println("exception: "+e);
-	    return;
-	}
-    }
-    
-    public void queryReplace(ArrayList strings, String fromText, String toText) {
-	for (int i=0; i<strings.size(); i++) {
-	    strings.set(i, ((String)strings.get(i)).replaceAll(fromText, toText));
-	}
-    }
-    
-    public ArrayList setupReplace (ArrayList fileLines, String param, String newValue){
-        
-	String oneLine=null;
-	String newLine=null;
-	String name=null;
-	param=param.trim();
-            
-	for (int i=0;i<fileLines.size();i++) {
-	    oneLine=((String) fileLines.get(i)).trim();
-	    StringTokenizer st=new StringTokenizer(oneLine,"=");
-                
-	    if(st.hasMoreTokens()){
-		name=st.nextToken();
-		if(param.equals(name)){
-		    newLine=param+"="+newValue;
-		    fileLines.set(i,newLine);
-		    break;
-		}
-                    
-	    }
-	}
-	return fileLines;
-    }
-
-    private void renameFile(ISContext context, String sourceFilePathRelative, String targetFilePathRelative)
-    {
-        String installLocation = context.resolveString("$P(absoluteInstallLocation)");
-
-        try {
-            FileService fileService = (FileService) context.getService(FileService.NAME);
-            String sourceFilePath = context.resolveString("$PATH(" + installLocation + ", " + sourceFilePathRelative + ")");
-            String targetFilePath = context.resolveString("$PATH(" + installLocation + ", " + targetFilePathRelative + ")");
-            fileService.moveFile(sourceFilePath, targetFilePath, true);
-        }
-        catch (ServiceException exception) {
-            System.err.println("Exception: " + exception);
-            exception.printStackTrace();
-        }
-    }
-    
-    
-     private void deleteFile(ISContext context, String filePathAbsolute)
-    {
-        
-        try {
-            FileService fileService = (FileService) context.getService(FileService.NAME);
-            fileService.deleteFile(filePathAbsolute);
-        }
-        catch (ServiceException exception) {
-            System.err.println("Exception: " + exception);
-            exception.printStackTrace();
-        }
-    }
-
-    private void copyFile(ISContext context, String sourceFilePathRelative, String targetFilePathRelative)
-    {
-        String installLocation = context.resolveString("$P(absoluteInstallLocation)");
-
-        try {
-            FileService fileService = (FileService) context.getService(FileService.NAME);
-            String sourceFilePath = context.resolveString("$PATH(" + installLocation + ", " + sourceFilePathRelative + ")");
-            String targetFilePath = context.resolveString("$PATH(" + installLocation + ", " + targetFilePathRelative + ")");
-            fileService.copyFile(sourceFilePath, targetFilePath, true);
-        }
-        catch (ServiceException exception) {
-            System.err.println("Exception: " + exception);
-            exception.printStackTrace();
-        }
-    }
-
-	
-	public void onInstalled_ant(ComponentInstallContext context)
-	{
-            String installLocation = context.resolveString("$P(absoluteInstallLocation)");
-            
-	    String linuxsetupfile = context.resolveString("$PATH(" + installLocation +", gs3-setup.sh)");
-	    String windowssetupfile = context.resolveString("$PATH(" + installLocation +", gs3-setup.bat)");
-	
-            // Set up ANT_HOME and put it in PATH for linux
-          String anthome = context.resolveString("$PATH(" + installLocation +", packages/ant)");
-	  ArrayList fileLines = readInFile(linuxsetupfile);
-           System.out.println("------------------------- fileLines !=null  : "+(fileLines !=null));
-          if (fileLines !=null){
-              fileLines.add("export ANT_HOME="+anthome+"\n");
-              fileLines.add("export PATH=$ANT_HOME/bin:$PATH"+"\n");
-	      writeOutFile(linuxsetupfile, fileLines);
-           }
-          
-           fileLines = readInFile(windowssetupfile);
-           if (fileLines !=null){
-                fileLines.add("set ANT_HOME="+anthome+"\n");
-                fileLines.add("set PATH=%ANT_HOME%/bin;%PATH%"+"\n");
-	        writeOutFile(windowssetupfile, fileLines);
-           }
-                      
-        }
-
-                            
-}
Index: lease-kits/lirk3/resources/READEME
===================================================================
--- /release-kits/lirk3/resources/READEME	(revision 16144)
+++ 	(revision )
@@ -1,24 +1,0 @@
-to use gs3-release maker:
-
-1. compile the customised ant
-
-cd apache-ant-1.6.5
-./build.sh -Ddist.dir=../ant dist
-cd ..
-
-
-2. install the customised ant
-
-cd ant
-export ANT_HOME=`pwd`
-export PATH=$ANT_HOME/bin:$PATH
-
-put this (using absolute paths) in your .profile to make it permanent if you want.
-the customised ant will run any other ant script just fine.
-
-
-3. customise the build.properties file for the current release
-
-
-4. start using it
-e.g., ant -Dexecute=false create-release
Index: lease-kits/lirk3/resources/compile
===================================================================
--- /release-kits/lirk3/resources/compile	(revision 16144)
+++ 	(revision )
@@ -1,15 +1,0 @@
-#!/bin/bash -x
-
-#create an object file (extension .o) for each file to bundle
-objcopy -I binary -O elf32-i386 -B i386 --redefine-sym _binary_greenstone3_jar_start=greenstone3jar --readonly-text greenstone3.jar build/greenstone3.jar.o
-
-#create a header file declaring the bundled files and their sizes
-rm build/mywrapper.h
-size=`du -b greenstone3.jar | sed 's/[^0-9].*//g'`
-echo "extern const char greenstone3jar[$size];" >> build/mywrapper.h
-
-#compile the wrapper program
-g++ -Wall -c -o build/mywrapper.o mywrapper.c
-
-#link, bundling the files to be bundled
-g++ -o greenstone3 build/mywrapper.o build/greenstone3.jar.o
Index: lease-kits/lirk3/resources/mac-compile.xml
===================================================================
--- /release-kits/lirk3/resources/mac-compile.xml	(revision 16144)
+++ 	(revision )
@@ -1,586 +1,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-
-<!--
-		.......................................................... 
-		October 2007
-		Mac part of the Greenstone3 'release maker'
-		Oran Fry
-		..........................................................
--->
-
-<project name="gs3-mac-compile" default="help">
-
-	<!-- classpath -->
-	<path id="project.classpath">
-		<fileset dir="tasks">
-			<include name="**/*.jar"/>
-		</fileset>
-		<fileset dir="lib">
-			<include name="*.jar"/>
-		</fileset>
-		<pathelement path="tasks/orans"/>
-	</path>
-
-	<!-- svn root -->
-	<property name="svn.root" value="http://svn.greenstone.org"/>
-
-	<!-- self defined tasks -->
-	<taskdef name="if" classname="ise.antelope.tasks.IfTask" classpathref="project.classpath"/>
-	<taskdef name="try" classname="ise.antelope.tasks.TryTask" classpathref="project.classpath"/>
-	<taskdef name="svn" classname="org.tigris.subversion.svnant.SvnTask" classpathref="project.classpath"/>
-	<taskdef name="setloglevel" classname="SetLogLevel" classpathref="project.classpath"/>
-	<typedef name="addressedcall" classname="TreeCallTarget" classpathref="project.classpath"/>
-	<typedef name="rsr" classname="RegexSearchReplace" classpathref="project.classpath"/>
-	<taskdef name="scp" classname="org.apache.tools.ant.taskdefs.optional.SCP"/>
-	<taskdef name="sshexec" classname="org.apache.tools.ant.taskdefs.optional.SSHExec" classpathref="project.classpath"/>
-
-
-	<!-- target relations
-	<typedef name="isafter" classname="IsAfter" classpathref="project.classpath"/>
-	<typedef name="isdescendantof" classname="IsDescendantOf" classpathref="project.classpath"/>
-	<typedef name="isbetweenyandroot" classname="IsBetweenYAndRoot" classpathref="project.classpath"/> -->
-
-
-
-
-	<!-- stuff to do before all tasks -->
-	<target name="init">
-
-		<echo level="info">CHECKING PRE-CONDITIONS</echo>
-		<echo level="info"/>
-
-		<!-- version number -->
-		<echo level="info">Checking if version number is set...</echo>
-		<if>
-			<bool>
-				<not><isset property="version"/></not>
-			</bool>
-			<echo level="error">No, not set</echo>
-			<echo level="error">Please specify a version number on the command line.</echo>
-			<echo level="error">E.g., ant -Dversion=3.03 create-release</echo>
-			<echo level="error">or,   ant -Dversion=trunk create-release</echo>
-			<fail>Version number not set</fail>
-		</if>
-		<echo level="info">Version number: ${version}</echo>
-		<property name="app.version" value="${version}"/>
-		<echo level="info"/>
-
-		<!-- where to put the release -->
-		<echo level="info">Determining where to put the release...</echo>
-		<if>
-			<bool>
-				<or>
-					<not><isset property="release.dir"/></not>
-					<not><isset property="mac.release.dir"/></not>
-					<not><isset property="windows.release.dir"/></not>
-				</or>
-				
-			</bool>
-			<echo level="error">No release directory specified.</echo>
-			<echo level="error">Please specify release directory on the command line.</echo>
-			<echo level="error">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-release</echo>
-			<fail>Release directorys not set</fail>
-		</if>
-		<echo level="info">Release directory: ${release.dir}</echo>
-		<echo level="info">Mac release directory: ${mac.release.dir}</echo>
-		<echo level="info">Windows release directory: ${windows.release.dir}</echo>
-		<echo level="info"/>
-
-		<!-- check start from -->
-		<echo level="info">Checking if we are resuming from a given target...</echo>
-		<if>
-			<bool>
-				<not><isset property="resume.from"/></not>
-			</bool>
-			<echo level="info">No, start from the beginning</echo>
-			<property name="resume.from" value="1"/>
-			<else>
-				<echo level="info">Yes, resuming from ${resume.from}</echo>
-			</else>
-		</if>
-		<echo level="info"/>
-
-		<!-- check resume mode-->
-		<echo level="info">Determining resume mode...</echo>
-		<if>
-			<bool>
-				<not><isset property="resume.mode"/></not>
-			</bool>
-			<echo level="info">Mode not set, defaulting to 'fallthrough'</echo>
-			<property name="resume.mode" value="fallthrough"/>
-			<else>
-				<echo level="info">Mode set to ${resume.mode}</echo>
-				<if>
-					<bool>
-						<and>
-							<not><equals arg1="${resume.mode}" arg2="descend"/></not>
-							<not><equals arg1="${resume.mode}" arg2="fallthrough"/></not>
-						</and>
-					</bool>
-					<echo level="error">You have not specified a valid resume mode.</echo>
-					<echo level="error">Valid modes are 'fallthrough' and 'descend'.</echo>
-					<fail>You have not specified a valid resume mode.</fail>
-				</if>
-			</else>
-		</if>
-		<echo level="info"/>
-
-		<!-- check username and password -->
-		<echo level="info">Checking if username and password set...</echo>
-		<if>
-			<bool>
-				<or>
-					<not><isset property="username"/></not>
-					<not><isset property="password"/></not>
-				</or>
-			</bool>
-			<echo level="info">Not set</echo>
-			<fail>You have not specified a username and password for ssh</fail>
-		</if>
-		<echo level="info"/>
-
-		<!-- execute target code or just traverse tree -->
-		<echo level="info">Determining execute mode...</echo>
-		<if>
-			<bool>
-				<not><isset property="execute"/></not>
-			</bool>
-			<echo level="info">Execute not set, defaulting to 'true'</echo>
-			<property name="execute" value="true"/>
-			<else>
-				<echo level="info">Execute set to ${execute}</echo>
-				<if>
-					<bool>
-						<and>
-							<not><equals arg1="${execute}" arg2="true"/></not>
-							<not><equals arg1="${execute}" arg2="false"/></not>
-						</and>
-					</bool>
-					<echo level="error">You have not specified a valid value for execute.</echo>
-					<echo level="error">Valid values are 'true' and 'false'.</echo>
-					<fail>You have not specified a valid value for execute.</fail>
-				</if>
-			</else>
-		</if>
-
-		<echo level="info"/>
-
-
-		<!-- the trunk or a branch -->
-		<echo level="info">Determining the branch path...</echo>
-		<if>
-			<bool>
-				<equals arg1="trunk" arg2="${version}"/>
-			</bool>
-			<property name="branch.path" value="trunk"/>
-
-			<else>
-				<property name="branch.path" value="branches/${version}"/>
-			</else>
-		</if>
-		<echo level="info">Branch Path: ${branch.path}</echo>
-		<echo level="info"/>
-
-		<!-- check branches exist -->
-		<property name="svn.greenstone3" value="${svn.root}/greenstone3/${branch.path}"/>
-		<property name="svn.gli" value="${svn.root}/gli/${branch.path}"/>
-		<property name="svn.indexers" value="${svn.root}/indexers/${branch.path}"/>
-		<property name="svn.documentation" value="${svn.root}/documentation/${branch.path}"/>
-
- 		<tempfile property="temp.file" destdir="${java.io.tmpdir}" prefix="delete" suffix=".tmp"/>
-
-		<!-- greenstone3 branch -->
-		<echo level="info">Checking that ${svn.greenstone3} exists...</echo>
-		<!-- try to put the  html index of the location into the temp file -->
-		<setloglevel level="error"/>
-		<try>
-			<get src="${svn.greenstone3}" dest="${temp.file}"/>
-			<catch>
-				<echo level="error">No, it does not exist</echo>
-				<property name="svn.greenstone3.unavailable" value="true"/>
-			</catch>
-		</try>
-		<setloglevel level="info"/>
-		<if>
-			<bool><not><istrue value="${svn.greenstone3.unavailable}"/></not></bool>
-			<echo level="info">Yes, it exists</echo>
-		</if>
-
-		<!-- gli branch -->
-		<echo level="info">Checking that ${svn.gli} exists...</echo>
-		<!-- try to put the  html index of the location into the temp file -->
-		<setloglevel level="error"/>
-		<try>
-			<get src="${svn.gli}" dest="${temp.file}"/>
-			<catch>
-				<echo level="error">No, does not exist</echo>
-				<property name="svn.gli.unavailable" value="true"/>
-			</catch>
-		</try>
-		<setloglevel level="info"/>
-		<if>
-			<bool><not><istrue value="${svn.gli.unavailable}"/></not></bool>
-			<echo level="info">Yes, it exists</echo>
-		</if>
-
-
-		<!-- indexers branch -->
-		<echo level="info">Checking that ${svn.indexers} exists...</echo>
-		<!-- try to put the  html index of the location into the temp file -->
-		<setloglevel level="error"/>
-		<try>
-			<get src="${svn.indexers}" dest="${temp.file}"/>
-			<catch>
-				<echo level="error">No, it does not exist</echo>
-				<property name="svn.indexers.unavailable" value="true"/>
-			</catch>
-		</try>
-		<setloglevel level="info"/>
-		<if>
-			<bool><not><istrue value="${svn.indexers.unavailable}"/></not></bool>
-			<echo level="info">Yes, it exists</echo>
-		</if>
-
-		<!-- documentation branch -->
-		<echo level="info">Checking that ${svn.documentation} exists...</echo>
-		<!-- try to put the  html index of the location into the temp file -->
-		<setloglevel level="error"/>
-		<try>
-			<get src="${svn.documentation}" dest="${temp.file}"/>
-			<catch>
-				<echo level="error">No, it does not exist</echo>
-				<property name="svn.documentation.unavailable" value="true"/>
-			</catch>
-		</try>
-		<setloglevel level="info"/>
-		<if>
-			<bool><not><istrue value="${svn.documentation.unavailable}"/></not></bool>
-			<echo level="info">Yes, it exists</echo>
-		</if>
-
-
-		<!-- clean up the temp file -->
-		<setloglevel level="error"/>
-		<delete file="${temp.file}"/>
-		<setloglevel level="info"/>
-
-
-		<!-- fail if some branches were missing -->
-		<if>
-			<bool>
-				<or>
-					<istrue value="${svn.greenstone3.unavailable}"/>
-					<istrue value="${svn.gli.unavailable}"/>
-					<istrue value="${svn.indexers.unavailable}"/>
-					<istrue value="${svn.documentation.unavailable}"/>
-				</or>
-			</bool>
-			<fail>Some 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.</fail>
-			<else>
-				<echo level="info">All exist</echo>
-			</else>
-		</if>
-
-	</target>
-
-	<target name="help">
-
-		<echo level="info">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-release</echo>
-		<echo level="info"/>
-
-		<echo level="info">This project creates releases of Greenstone3 from the subversion repository given a version number.</echo>
-		<echo level="info"/>
-
-		<echo level="info">Each target in this project's target tree has been given an address, like so:</echo>
-		<echo level="info"/>
-		<echo level="info">root</echo>
-		<echo level="info">  |-1</echo>
-		<echo level="info">  | |-1.1</echo>
-		<echo level="info">  | |-1.2</echo>
-		<echo level="info">  |</echo>
-		<echo level="info">  |-2</echo>
-		<echo level="info">  | |-2.1</echo>
-		<echo level="info">  | |-2.2</echo>
-		<echo level="info">  etc.</echo>
-
-		<echo level="info"/>
-
-
-		<echo level="info">PARAMETERS</echo>
-		<echo level="info"/>
-
-		<echo level="info">version=VERSION_NUMBER, where VERSION_NUMBER={x.xx|trunk}</echo>
-		<echo level="info"/>
-		<echo level="info">This project can either create a release from a greenstone3 branch, or from the development trunk.</echo>
-		<echo level="info">To create a branch release, specify the VERSION_NUMBER (e.g., 3.03), and ensure that the following</echo>
-		<echo level="info">branches exist in the repository:</echo>
-		<echo level="info">    greenstone3/branches/VERSION_NUMBER</echo>
-		<echo level="info">    gli/branches/VERSION_NUMBER</echo>
-		<echo level="info">    indexers/branches/VERSION_NUMBER</echo>
-		<echo level="info">    documentation/branches/VERSION_NUMBER</echo>
-		<echo level="info">To create a trunk release, specify 'trunk' as the version number.</echo>
-		<echo level="info">The project will use the trunk of greenstone3, gli, indexers and documentation for the release.</echo>
-		<echo level="info"/>
-		<echo level="info"/>
-
-		<echo level="info">release.dir=RELEASE_DIRECTORY</echo>
-		<echo level="info"/>
-		<echo level="info">Specifies the directory in the filesystem where the release files will be kept.</echo>
-		<echo level="info"/>
-		<echo level="info"/>
-
-		<echo level="info">resume.from=TARGET_ADDRESS, where TARGET_ADDRESS=x.y.z (e.g., 2.1.3)</echo>
-		<echo level="info"/>
-		<echo level="info">Allows you to specify a target address from which execution will resume.</echo>
-		<echo level="info">This is helpful for restarting the script after it has failed part-way through.</echo>
-		<echo level="info">By default, execution starts from the root target (create-release) and proceeds downwards.</echo>
-		<echo level="info">You can specify a different target to start from by setting the resume.from parameter.</echo>
-		<echo level="info"/>
-		<echo level="info"/>
-
-		<echo level="info">resume.mode=RESUME_MODE, where RESUME_MODE={fallthrough|descend}</echo>
-		<echo level="info"/>
-		<echo level="info">fallthrough (default): In fallthrough mode, execution proceeds downwards through the target tree</echo>
-		<echo level="info">1 -> 1.1 -> 1.2 -> 2 -> 2.1 -> 2.2 -> 3 -> 3.1 and so on.</echo>
-		<echo level="info">descend: In descend mode, execution descends a single branch of the target tree.</echo>
-		<echo level="info">For example, if resume.from was set to '2', execution would proceed thus:</echo>
-		<echo level="info">2 -> 2.1 -> 2.2 (exit)</echo>
-		<echo level="info">This is helpful when you want to debug a particular target, or fix some conditions to allow it to finish</echo>
-		<echo level="info">properly, and don't want to run the whole script from the start.</echo>
-
-
-	</target>
-
-
-
-
-	<!-- ADDRESSED TARGETS -->
-
-	<!-- root target -->
-	<target name="create-release" depends="init">
-		<echo>Creating Release ${version}</echo>
-		<addressedcall target="prep"/>
-		<addressedcall target="compile-binaries"/>
-		<addressedcall target="create-distribution"/>
-		<addressedcall target="compile-documentation"/>
-		<addressedcall target="create-installer-project"/>
-		<addressedcall target="build-installers"/>
-	</target>
-
-	<!-- first level targets -->
-	<target name="prep">
-		<addressedcall target="create-release-dir" />
-	</target>
-
-	<target name="compile-binaries">
-		<addressedcall target="linux" />
-		<addressedcall target="windows" />
-		<addressedcall target="mac" />
-	</target>
-
-	<target name="create-distribution">
-		<!-- create distribution -->
-	</target>
-
-	<target name="compile-documentation">
-		<!-- compile documentation -->
-	</target>
-
-	<target name="create-installer-project">
-		<!-- create installer project -->
-	</target>
-
-	<target name="build-installers">
-		<!-- build installers -->
-	</target>
-
-	<!-- second level targets -->
-
-	<target name="create-release-dir">
-		<if><bool><istrue value="${execute}"/></bool>
-			<mkdir dir="${release.dir}"/>
-		</if>
-	</target>
-
-	<target name="linux">
-		<!-- preparation -->
-		<addressedcall target="checkout-greenstone3" />
-		<addressedcall target="dist-prepare-unix" />
-		<addressedcall target="tweak-configure-scripts" />
-		<!-- update -->
-		<addressedcall target="dist-update-unix" />
-		<!-- configure -->
-		<addressedcall target="dist-configure-unix" />
-		<addressedcall target="tweak-makefiles" />
-		<!-- build -->
-		<addressedcall target="dist-build-unix" />
-		<addressedcall target="fix-wget" />
-		<addressedcall target="linux-strip-execs" />
-
-		<!-- documentation -->
-		<addressedcall target="prepare-documentation" />
-	</target>
-
-	<target name="mac">
-		<sshexec host="shuttle" username="${username}" password="${password}" exec="if [ ! -e ${mac.release.dir} ]; then mkdir ${mac.release.dir}; fi" />
-		<scp host="shuttle" username="${username}" password="${password}" destdir="${mac.release.dir}" src="${basedir}/resources" includes="mac-compile.xml" />
-	</target>
-
-
-	<target name="windows"/>
-
-	<!-- third level targets -->
-	<target name="checkout-greenstone3">
-		<if><bool><istrue value="${execute}"/></bool>
-		<svn>
-			<checkout url="${svn.root}/greenstone3/${branch.path}" destPath="${release.dir}/greenstone3"/>
-		</svn>
-		</if>
-	</target>
-
-	<target name="dist-prepare-unix">
-		<if><bool><istrue value="${execute}"/></bool>
-			<ant antfile="${release.dir}/greenstone3/dist-resources/dist-build.xml" dir="${release.dir}/greenstone3" target="prepare-unix" />
-		</if>	
-	</target>
-	<target name="tweak-configure-scripts">
-		<addressedcall target="mgpp-add-static" />
-		<addressedcall target="mg-add-static" />
-		<addressedcall target="gs2buildextra-add-static" />
-	</target>
-
-	<target name="dist-update-unix">
-		<if><bool><istrue value="${execute}"/></bool>
-			<ant antfile="${release.dir}/greenstone3/dist-resources/dist-build.xml" dir="${release.dir}/greenstone3" target="update-unix" />
-		</if>
-	</target>
-
-	<target name="dist-configure-unix">
-		<if><bool><istrue value="${execute}"/></bool>
-			<exec dir="${release.dir}/greenstone3/gs2build/gs2build-extra" executable="autoconf" output="${release.dir}/greenstone3/gs2build/configure">
-				<arg line="configure.in"/>
-			</exec>
-			<chmod file="${release.dir}/greenstone3/gs2build/configure" perm="+x"/>
-			<ant antfile="${release.dir}/greenstone3/dist-resources/dist-build.xml" dir="${release.dir}/greenstone3" target="configure-unix" />
-		</if>
-	</target>
-
-	<target name="tweak-makefiles">
-		<addressedcall target="wv-add-static" />
-		<addressedcall target="xlhtml-add-static" />
-		<addressedcall target="ppthtml-add-static" />
-		<addressedcall target="rtftohtml-add-static" />
-		<addressedcall target="gdbm-add-static" />
-	</target>
-
-	<target name="dist-build-unix">
-		<if><bool><istrue value="${execute}"/></bool>
-			<ant antfile="${release.dir}/greenstone3/dist-resources/dist-build.xml" dir="${release.dir}/greenstone3" target="build-unix" />
-		</if>
-	</target>
-
-	<target name="fix-wget">
-		<if><bool><istrue value="${execute}"/></bool>
-			<!-- fix this !!! -->
-		  <delete file="${release.dir}/greenstone3/gs2build/packages/wget/wget-1.9/src/wget"/>
-		</if>
-	</target>
-
-	<target name="linux-strip-execs">
-		<if><bool><istrue value="${execute}"/></bool>
-			<exec dir="${release.dir}/greenstone3/gs2build/bin/linux" executable="find">
-				<arg line="! -name . -exec strip {} &#59;"/>
-			</exec>
-		</if>
-	</target>
-
-	<target name="prepare-documentation">
-		<if><bool><istrue value="${execute}"/></bool>
-			<mkdir dir="${release.dir}/greenstone3/gsdl-manuals"/>
-			<svn>
-				<checkout url="${svn.root}/documentation/${branch.path}/manuals" destPath="${release.dir}/greenstone3/gsdl-manuals/manuals"/>
-				<checkout url="${svn.root}/documentation/${branch.path}/shared" destPath="${release.dir}/greenstone3/gsdl-manuals/shared"/>
-			</svn>
-			<javac srcdir="${release.dir}/greenstone3/gsdl-manuals/shared"
-			      destdir="${release.dir}/greenstone3/gsdl-manuals/shared"
-			      debug="on">
-				<include name="*.java"/>
-			</javac>
-			<unzip src="${release.dir}/greenstone3/gsdl-manuals/shared/fop.zip" dest="${release.dir}/greenstone3/gsdl-manuals/shared"/>
-
-			<!-- classpath -->
-			<path id="documentation.compile.classpath">
-				<fileset dir="${release.dir}/greenstone3/gsdl-manuals">
-					<include name="**/*.jar"/>
-				</fileset>
-				<pathelement path="${release.dir}/greenstone3/gsdl-manuals/shared"/>
-				<pathelement path="${release.dir}/greenstone3/gsdl-manuals/manuals"/>
-			</path>
-
-			<java classname="ApplyXSLT" classpathref="documentation.compile.classpath" output="${release.dir}/greenstone3/gsdl-manuals/manuals/xml-source/en/help-en.xml">
-				<arg value="${release.dir}/greenstone3/gsdl-manuals/manuals/processing/gen-gli-help-to-manual-chapter.xsl" />
-				<arg value="${release.dir}/greenstone3/gli/help/en/help.xml" />
-				<arg value="${release.dir}/greenstone3" />
-			</java>
-
-			<chmod perm="a+x" file="${release.dir}/greenstone3/gsdl-manuals/shared/fop/fop.sh"/>
-			<exec dir="${release.dir}/greenstone3/gsdl-manuals/manuals" executable="${release.dir}/greenstone3/gsdl-manuals/manuals/generate-pdf.sh">
-				<arg line="u en" />
-			</exec>
-
-		</if>
-	</target>
- 
-
-
-	<!-- fourth level targets -->
-	<target name="mgpp-add-static">
-		<if><bool><istrue value="${execute}"/></bool>
-			<rsr file="${release.dir}/greenstone3/gs2build/indexers/mgpp/configure.in" pattern="^LDFLAGS=$" replacement="LDFLAGS=-static" />
-			<exec dir="${release.dir}/greenstone3/gs2build/indexers/mgpp" executable="autoconf" output="${release.dir}/greenstone3/gs2build/indexers/mgpp/configure">
-				<arg line="configure.in"/>
-			</exec>
-		</if>
-	</target>
-	<target name="mg-add-static">
-		<if><bool><istrue value="${execute}"/></bool>
-			<rsr file="${release.dir}/greenstone3/gs2build/indexers/mg/configure.in" pattern="^LDFLAGS=$" replacement="LDFLAGS=-static" />
-			<exec dir="${release.dir}/greenstone3/gs2build/indexers/mg" executable="autoconf" output="${release.dir}/greenstone3/gs2build/indexers/mg/configure">
-				<arg line="configure.in"/>
-			</exec>
-		</if>
-	</target>
-	<target name="gs2buildextra-add-static">
-		<if><bool><istrue value="${execute}"/></bool>
-			<rsr file="${release.dir}/greenstone3/gs2build/gs2build-extra/packages.configure" pattern="^ENVIRONMENT=&quot;&quot;$" replacement="ENVIRONMENT=&quot;LDFLAGS=-static&quot;" />
-			<rsr file="${release.dir}/greenstone3/gs2build/gs2build-extra/configure.in" pattern="^LDFLAGS=$" replacement="LDFLAGS=-static" />
-		</if>
-	</target>
-
-	<target name="wv-add-static">
-		<if><bool><istrue value="${execute}"/></bool>
-			<rsr file="${release.dir}/greenstone3/gs2build/packages/wv/wv-gs/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" />
-		</if>
-	</target>
-	<target name="xlhtml-add-static">
-		<if><bool><istrue value="${execute}"/></bool>
-			<rsr file="${release.dir}/greenstone3/gs2build/packages/xlhtml/xlhtml-0.4.9.0/xlhtml/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" />
-		</if>
-	</target>
-	<target name="ppthtml-add-static">
-		<if><bool><istrue value="${execute}"/></bool>
-			<rsr file="${release.dir}/greenstone3/gs2build/packages/xlhtml/xlhtml-0.4.9.0/ppthtml/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" />
-		</if>
-	</target>
-	<target name="rtftohtml-add-static">
-		<if><bool><istrue value="${execute}"/></bool>
-			<rsr file="${release.dir}/greenstone3/gs2build/packages/rtftohtml/rtftohtml_src/Makefile" pattern="-o rtftohtml.{2}EXEEXT.{1}" replacement="-o rtftohtml\$(EXEEXT) -static" />
-		</if>
-	</target>
-	<target name="gdbm-add-static">
-		<if><bool><istrue value="${execute}"/></bool>
-			<rsr file="${release.dir}/greenstone3/src/packages/javagdbm/jni/Makefile" pattern="^(GDBM_LIBS)\s*=\s*(.*)-lgdbm(.*)$" replacement="$1=$2/usr/lib/libgdbm.a$3" />
-		</if>
-	</target>
-
-</project>
Index: lease-kits/lirk3/resources/old-build.xml
===================================================================
--- /release-kits/lirk3/resources/old-build.xml	(revision 16144)
+++ 	(revision )
@@ -1,651 +1,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-
-<!--
-		.......................................................... 
-		September 2007
-		Greenstone3 'release maker' script
-		Oran Fry
-		..........................................................
--->
-
-<project name="lirk3-init">
-
-	<!-- classpath -->
-	<path id="project.classpath">
-		<fileset dir="tasks">
-			<include name="**/*.jar"/>
-		</fileset>
-		<fileset dir="lib">
-			<include name="*.jar"/>
-		</fileset>
-		<pathelement path="tasks/orans"/>
-	</path>
-
-	<!-- svn root -->
-	<property name="svn.root" value="http://svn.greenstone.org"/>
-
-	<!-- self defined tasks -->
-	<taskdef name="if" classname="ise.antelope.tasks.IfTask" classpathref="project.classpath"/>
-	<taskdef name="try" classname="ise.antelope.tasks.TryTask" classpathref="project.classpath"/>
-	<taskdef name="svn" classname="org.tigris.subversion.svnant.SvnTask" classpathref="project.classpath"/>
-	<taskdef name="setloglevel" classname="SetLogLevel" classpathref="project.classpath"/>
-	<typedef name="addressedcall" classname="TreeCallTarget" classpathref="project.classpath"/>
-	<typedef name="rsr" classname="RegexSearchReplace" classpathref="project.classpath"/>
-
-
-	<!-- target relations
-	<typedef name="isafter" classname="IsAfter" classpathref="project.classpath"/>
-	<typedef name="isdescendantof" classname="IsDescendantOf" classpathref="project.classpath"/>
-	<typedef name="isbetweenyandroot" classname="IsBetweenYAndRoot" classpathref="project.classpath"/> -->
-
-
-	<!-- load in static properties from build.properties -->
-	<property file="${release.dir}/build.properties" />
-
-	<!-- stuff to do before all tasks -->
-	<target name="init">
-
-		<echo level="info">CHECKING PRE-CONDITIONS</echo>
-		<echo level="info"/>
-
-		<!-- version number -->
-		<echo level="info">Checking if version number is set...</echo>
-		<if>
-			<bool>
-				<or>
-					<not><isset property="version"/></not>
-					<not><isset property="version.minor"/></not>
-				</or>
-			</bool>
-			<echo level="error">No, not set</echo>
-			<echo level="error">Please specify a version number in your build.properties file</echo>
-			<fail>Version number not set</fail>
-		</if>
-		<echo level="info">Version number: ${version}</echo>
-		<property name="app.version" value="${version}"/>
-		<echo level="info"/>
-
-		<!-- check resume from -->
-		<echo level="info">Checking if we are resuming from a given target...</echo>
-		<if>
-			<bool><not><isset property="resume.from"/></not></bool>
-			<echo level="info">No, start from the beginning</echo>
-			<property name="resume.from" value="1"/>
-			<else>
-				<echo level="info">Yes, resuming from ${resume.from}</echo>
-			</else>
-		</if>
-		<echo level="info"/>
-
-		<!-- check resume mode-->
-		<echo level="info">Determining resume mode...</echo>
-		<if>
-			<bool>
-				<not><isset property="resume.mode"/></not>
-			</bool>
-			<echo level="info">Mode not set, defaulting to 'fallthrough'</echo>
-			<property name="resume.mode" value="fallthrough"/>
-			<else>
-				<echo level="info">Mode set to ${resume.mode}</echo>
-				<if>
-					<bool>
-						<and>
-							<not><equals arg1="${resume.mode}" arg2="descend"/></not>
-							<not><equals arg1="${resume.mode}" arg2="fallthrough"/></not>
-						</and>
-					</bool>
-					<echo level="error">You have not specified a valid resume mode.</echo>
-					<echo level="error">Valid modes are 'fallthrough' and 'descend'.</echo>
-					<fail>You have not specified a valid resume mode.</fail>
-				</if>
-			</else>
-		</if>
-		<echo level="info"/>
-
-		<!-- execute target code or just traverse tree -->
-		<echo level="info">Determining execute mode...</echo>
-		<if>
-			<bool>
-				<not><isset property="execute"/></not>
-			</bool>
-			<echo level="info">Execute not set, defaulting to 'true'</echo>
-			<property name="execute" value="true"/>
-			<else>
-				<echo level="info">Execute set to ${execute}</echo>
-				<if>
-					<bool>
-						<and>
-							<not><equals arg1="${execute}" arg2="true"/></not>
-							<not><equals arg1="${execute}" arg2="false"/></not>
-						</and>
-					</bool>
-					<echo level="error">You have not specified a valid value for execute.</echo>
-					<echo level="error">Valid values are 'true' and 'false'.</echo>
-					<fail>You have not specified a valid value for execute.</fail>
-				</if>
-			</else>
-		</if>
-
-		<echo level="info"/>
-
-
-		<!-- check branch.path -->
-		<echo level="info">Determining the branch path...</echo>
-		<if>
-			<bool><equals arg1="trunk" arg2="${version}"/></bool>
-			<property name="branch.path" value="trunk"/>
-		</if>
-
-		<if>
-			<bool><not><isset property="branch.path"/></not></bool>
-			<fail>You have not specified a branch path where code will come from in the repository</fail>
-		</if>
-
-		<echo level="info">Branch Path: ${branch.path}</echo>
-		<echo level="info"/>
-
-		<!-- check branches exist -->
-		<property name="svn.greenstone3" value="${svn.root}/greenstone3/${branch.path}"/>
-		<property name="svn.gsdl" value="${svn.root}/gsdl/${branch.path}"/>
-		<property name="svn.gli" value="${svn.root}/gli/${branch.path}"/>
-		<property name="svn.indexers" value="${svn.root}/indexers/${branch.path}"/>
-		<property name="svn.documentation" value="${svn.root}/documentation/${branch.path}"/>
-
- 		<tempfile property="temp.file" destdir="${java.io.tmpdir}" prefix="delete" suffix=".tmp"/>
-
-		<!-- greenstone3 branch -->
-		<echo level="info">Checking that ${svn.greenstone3} exists...</echo>
-
-		<!-- try to put the  html index of the location into the temp file -->
-		<setloglevel level="error"/>
-		<try>
-			<get src="${svn.greenstone3}" dest="${temp.file}"/>
-			<catch>
-				<echo level="error">No, it does not exist</echo>
-				<property name="svn.greenstone3.unavailable" value="true"/>
-			</catch>
-		</try>
-		<setloglevel level="info"/>
-		<if>
-			<bool><not><istrue value="${svn.greenstone3.unavailable}"/></not></bool>
-			<echo level="info">Yes, it exists</echo>
-		</if>
-
-		<!-- greenstone3 branch -->
-		<echo level="info">Checking that ${svn.gsdl} exists...</echo>
-		<setloglevel level="error"/>
-		<try>
-			<get src="${svn.gsdl}" dest="${temp.file}"/>
-			<catch>
-				<echo level="error">No, it does not exist</echo>
-				<property name="svn.gsdl.unavailable" value="true"/>
-			</catch>
-		</try>
-		<setloglevel level="info"/>
-		<if>
-			<bool><not><istrue value="${svn.gsdl.unavailable}"/></not></bool>
-			<echo level="info">Yes, it exists</echo>
-		</if>
-
-
-		<!-- gli branch -->
-		<echo level="info">Checking that ${svn.gli} exists...</echo>
-		<!-- try to put the  html index of the location into the temp file -->
-		<setloglevel level="error"/>
-		<try>
-			<get src="${svn.gli}" dest="${temp.file}"/>
-			<catch>
-				<echo level="error">No, does not exist</echo>
-				<property name="svn.gli.unavailable" value="true"/>
-			</catch>
-		</try>
-		<setloglevel level="info"/>
-		<if>
-			<bool><not><istrue value="${svn.gli.unavailable}"/></not></bool>
-			<echo level="info">Yes, it exists</echo>
-		</if>
-
-
-		<!-- indexers branch -->
-		<echo level="info">Checking that ${svn.indexers} exists...</echo>
-		<!-- try to put the  html index of the location into the temp file -->
-		<setloglevel level="error"/>
-		<try>
-			<get src="${svn.indexers}" dest="${temp.file}"/>
-			<catch>
-				<echo level="error">No, it does not exist</echo>
-				<property name="svn.indexers.unavailable" value="true"/>
-			</catch>
-		</try>
-		<setloglevel level="info"/>
-		<if>
-			<bool><not><istrue value="${svn.indexers.unavailable}"/></not></bool>
-			<echo level="info">Yes, it exists</echo>
-		</if>
-
-		<!-- documentation branch -->
-		<echo level="info">Checking that ${svn.documentation} exists...</echo>
-		<!-- try to put the  html index of the location into the temp file -->
-		<setloglevel level="error"/>
-		<try>
-			<get src="${svn.documentation}" dest="${temp.file}"/>
-			<catch>
-				<echo level="error">No, it does not exist</echo>
-				<property name="svn.documentation.unavailable" value="true"/>
-			</catch>
-		</try>
-		<setloglevel level="info"/>
-		<if>
-			<bool><not><istrue value="${svn.documentation.unavailable}"/></not></bool>
-			<echo level="info">Yes, it exists</echo>
-		</if>
-
-
-		<!-- clean up the temp file -->
-		<setloglevel level="error"/>
-		<delete file="${temp.file}"/>
-		<setloglevel level="info"/>
-
-
-		<!-- fail if some branches were missing -->
-		<if>
-			<bool>
-				<or>
-					<istrue value="${svn.greenstone3.unavailable}"/>
-					<istrue value="${svn.gsdl.unavailable}"/>
-					<istrue value="${svn.gli.unavailable}"/>
-					<istrue value="${svn.indexers.unavailable}"/>
-					<istrue value="${svn.documentation.unavailable}"/>
-				</or>
-			</bool>
-			<fail>Some 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.</fail>
-			<else>
-				<echo level="info">All exist</echo>
-			</else>
-		</if>
-
-	</target>
-
-	<target name="help">
-
-		<echo level="info">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-release</echo>
-		<echo level="info"/>
-
-		<echo level="info">This project creates releases of Greenstone3 from the subversion repository given a version number.</echo>
-		<echo level="info"/>
-
-		<echo level="info">Each target in this project's target tree has been given an address, like so:</echo>
-		<echo level="info"/>
-		<echo level="info">root</echo>
-		<echo level="info">  |-1</echo>
-		<echo level="info">  | |-1.1</echo>
-		<echo level="info">  | |-1.2</echo>
-		<echo level="info">  |</echo>
-		<echo level="info">  |-2</echo>
-		<echo level="info">  | |-2.1</echo>
-		<echo level="info">  | |-2.2</echo>
-		<echo level="info">  etc.</echo>
-
-		<echo level="info"/>
-
-
-		<echo level="info">PARAMETERS</echo>
-		<echo level="info">Parameters are specifiable on the command line or in build.properties</echo>
-		<echo level="info">Parameters which remain static throughout the release process should be stores in build.properties:</echo>
-		<echo level="info">version, version.minor, release.dir, mac.release.dir, windows.release.dir, username</echo>
-		<echo level="info">Other parameters will change each time you invoke the script, specify them on the command line:</echo>
-		<echo level="info">resume.from, resume.mode</echo>
-
-
-
-		<echo level="info"/>
-
-		<echo level="info">version=VERSION_NUMBER, where VERSION_NUMBER={x.xx|trunk}</echo>
-		<echo level="info"/>
-		<echo level="info">This project can either create a release from a greenstone3 branch, or from the development trunk.</echo>
-		<echo level="info">To create a branch release, specify the VERSION_NUMBER (e.g., 3.03), and ensure that the following</echo>
-		<echo level="info">branches exist in the repository:</echo>
-		<echo level="info">    greenstone3/branches/VERSION_NUMBER</echo>
-		<echo level="info">    gli/branches/VERSION_NUMBER</echo>
-		<echo level="info">    indexers/branches/VERSION_NUMBER</echo>
-		<echo level="info">    documentation/branches/VERSION_NUMBER</echo>
-		<echo level="info">To create a trunk release, specify 'trunk' as the version number.</echo>
-		<echo level="info">The project will use the trunk of greenstone3, gli, indexers and documentation for the release.</echo>
-		<echo level="info"/>
-		<echo level="info"/>
-
-		<echo level="info">release.dir=RELEASE_DIRECTORY</echo>
-		<echo level="info"/>
-		<echo level="info">Specifies the directory in the filesystem where the release files will be kept.</echo>
-		<echo level="info"/>
-		<echo level="info"/>
-
-		<echo level="info">resume.from=TARGET_ADDRESS, where TARGET_ADDRESS=x.y.z (e.g., 2.1.3)</echo>
-		<echo level="info"/>
-		<echo level="info">Allows you to specify a target address from which execution will resume.</echo>
-		<echo level="info">This is helpful for restarting the script after it has failed part-way through.</echo>
-		<echo level="info">By default, execution starts from the root target (create-release) and proceeds downwards.</echo>
-		<echo level="info">You can specify a different target to start from by setting the resume.from parameter.</echo>
-		<echo level="info"/>
-		<echo level="info"/>
-
-		<echo level="info">resume.mode=RESUME_MODE, where RESUME_MODE={fallthrough|descend}</echo>
-		<echo level="info"/>
-		<echo level="info">fallthrough (default): In fallthrough mode, execution proceeds downwards through the target tree</echo>
-		<echo level="info">1 -> 1.1 -> 1.2 -> 2 -> 2.1 -> 2.2 -> 3 -> 3.1 and so on.</echo>
-		<echo level="info">descend: In descend mode, execution descends a single branch of the target tree.</echo>
-		<echo level="info">For example, if resume.from was set to '2', execution would proceed thus:</echo>
-		<echo level="info">2 -> 2.1 -> 2.2 (exit)</echo>
-		<echo level="info">This is helpful when you want to debug a particular target, or fix some conditions to allow it to finish</echo>
-		<echo level="info">properly, and don't want to run the whole script from the start.</echo>
-		<echo level="info"/>
-		<echo level="info"/>
-
-		<echo level="info">release.dir, mac.release.dir, windows.release.dir</echo>
-		<echo level="info"/>
-		<echo level="info">The full path to the directories where release files will be stored on</echo>
-		<echo level="info">linux(your machine), mac(shuttle) and windows(kohekohe).</echo>
-		<echo level="info">E.g., -Drelease.dir=/research/oranfry/releases/3.03</echo>
-		<echo level="info">E.g., -Dmac.release.dir=/Users/oranfry/releases/3.03</echo>
-		<echo level="info">E.g., -Dwindows.release.dir=c:\\research\\oranfry\\releases\\3.03</echo>
-		<echo level="info"/>
-		<echo level="info"/>
-
-		<echo level="info">username</echo>
-		<echo level="info"/>
-		<echo level="info">Your username for ssh from your machine to shuttle and kohekohe.</echo>
-		<echo level="info">You will be prompted for your password a number of times while the script executes.</echo>
-		<echo level="info"/>
-		<echo level="info"/>
-
-
-	</target>
-
-
-
-
-	<!-- ADDRESSED TARGETS -->
-
-
-	<!--
-
-		top level targets
-
-	-->
-
-	<target name="download" depends="init">
-		<if><bool><istrue value="${execute}"/></bool>
-
-		<svn>
-			<checkout url="${svn.root}/greenstone3/${branch.path}" destPath="${release.dir}/greenstone3"/>
-		</svn>
-
-		</if>
-	</target>
-
-
-	<target name="compile" depends="init">
-
-		<!-- preparation -->
-		<addressedcall target="set-version-number-property" />
-		<addressedcall target="dist-prepare-unix" />
-		<addressedcall target="tweak-configure-scripts" />
-
-		<!-- update -->
-		<addressedcall target="dist-update-unix" />
-
-		<!-- configure -->
-		<addressedcall target="dist-configure-unix" />
-		<addressedcall target="tweak-makefiles" />
-
-		<!-- build -->
-		<addressedcall target="dist-build-unix" />
-		<addressedcall target="fix-wget" />
-		<addressedcall target="linux-strip-execs" />
-
-		<!-- documentation -->
-		<addressedcall target="prepare-documentation" />
-
-	</target>
-
-	<target name="create-distribution" depends="init">
-		<!-- create distribution -->
-		<addressedcall target="export-greenstone3" />
-		<addressedcall target="dist-set-version-number-property" />
-		<!--<addressedcall target="create-distributions-1" />
-		<addressedcall target="create-distributions-2" />
-		<addressedcall target="create-distributions-3" />
-		<addressedcall target="copy-over-build-xml" />-->
-		<addressedcall target="insert-user-manual"/>
-		<!--<addressedcall target="insert-compiled-binaries"/>-->
-	</target>
-
-
-
-
-	<!--
-
-		second level targets
-
-	-->
-
-	<target name="set-version-number-property">
-		<if><bool><istrue value="${execute}"/></bool>
-			<rsr file="${release.dir}/greenstone3/resources/java/global.properties.in" pattern="@gsdl3version@" replacement="${version}" />
-		</if>
-	</target>
-
-	<target name="dist-prepare-unix">
-		<if><bool><istrue value="${execute}"/></bool>
-			<ant antfile="${release.dir}/greenstone3/dist-resources/dist-build.xml" dir="${release.dir}/greenstone3" target="prepare-unix" />
-		</if>	
-	</target>
-	<target name="tweak-configure-scripts">
-		<addressedcall target="mgpp-add-static" />
-		<addressedcall target="mg-add-static" />
-		<addressedcall target="gs2buildextra-add-static" />
-	</target>
-
-	<target name="dist-update-unix">
-		<if><bool><istrue value="${execute}"/></bool>
-			<ant antfile="${release.dir}/greenstone3/dist-resources/dist-build.xml" dir="${release.dir}/greenstone3" target="update-unix" />
-		</if>
-	</target>
-
-	<target name="dist-configure-unix">
-		<if><bool><istrue value="${execute}"/></bool>
-			<exec dir="${release.dir}/greenstone3/gs2build/gs2build-extra" executable="autoconf" output="${release.dir}/greenstone3/gs2build/configure">
-				<arg line="configure.in"/>
-			</exec>
-			<chmod file="${release.dir}/greenstone3/gs2build/configure" perm="+x"/>
-			<ant antfile="${release.dir}/greenstone3/dist-resources/dist-build.xml" dir="${release.dir}/greenstone3" target="configure-unix" />
-		</if>
-	</target>
-
-	<target name="tweak-makefiles">
-		<addressedcall target="wv-add-static" />
-		<addressedcall target="xlhtml-add-static" />
-		<addressedcall target="ppthtml-add-static" />
-		<addressedcall target="rtftohtml-add-static" />
-		<addressedcall target="gdbm-add-static" />
-	</target>
-
-	<target name="dist-build-unix">
-		<if><bool><istrue value="${execute}"/></bool>
-			<ant antfile="${release.dir}/greenstone3/dist-resources/dist-build.xml" dir="${release.dir}/greenstone3" target="build-unix" />
-		</if>
-	</target>
-
-	<target name="fix-wget">
-		<if><bool><istrue value="${execute}"/></bool>
-			<!-- fix this !!! -->
-		  <delete file="${release.dir}/greenstone3/gs2build/packages/wget/wget-1.9/src/wget"/>
-		</if>
-	</target>
-
-	<target name="linux-strip-execs">
-		<if><bool><istrue value="${execute}"/></bool>
-			<exec dir="${release.dir}/greenstone3/gs2build/bin/linux" executable="find">
-				<arg line="! -name . -exec strip {} &#59;"/>
-			</exec>
-		</if>
-	</target>
-
-	<target name="prepare-documentation">
-		<if><bool><istrue value="${execute}"/></bool>
-			<mkdir dir="${release.dir}/greenstone3/gsdl-manuals"/>
-			<svn>
-				<checkout url="${svn.root}/documentation/${branch.path}/manuals" destPath="${release.dir}/greenstone3/gsdl-manuals/manuals"/>
-				<checkout url="${svn.root}/documentation/${branch.path}/shared" destPath="${release.dir}/greenstone3/gsdl-manuals/shared"/>
-			</svn>
-			<javac srcdir="${release.dir}/greenstone3/gsdl-manuals/shared"
-			      destdir="${release.dir}/greenstone3/gsdl-manuals/shared"
-			      debug="on">
-				<include name="*.java"/>
-			</javac>
-			<unzip src="${release.dir}/greenstone3/gsdl-manuals/shared/fop.zip" dest="${release.dir}/greenstone3/gsdl-manuals/shared"/>
-
-			<!-- classpath -->
-			<path id="documentation.compile.classpath">
-				<fileset dir="${release.dir}/greenstone3/gsdl-manuals">
-					<include name="**/*.jar"/>
-				</fileset>
-				<pathelement path="${release.dir}/greenstone3/gsdl-manuals/shared"/>
-				<pathelement path="${release.dir}/greenstone3/gsdl-manuals/manuals"/>
-			</path>
-
-			<java classname="ApplyXSLT" classpathref="documentation.compile.classpath" output="${release.dir}/greenstone3/gsdl-manuals/manuals/xml-source/en/help-en.xml">
-				<arg value="${release.dir}/greenstone3/gsdl-manuals/manuals/processing/gen-gli-help-to-manual-chapter.xsl" />
-				<arg value="${release.dir}/greenstone3/gli/help/en/help.xml" />
-				<arg value="${release.dir}/greenstone3" />
-			</java>
-
-			<chmod perm="a+x" file="${release.dir}/greenstone3/gsdl-manuals/shared/fop/fop.sh"/>
-			<exec dir="${release.dir}/greenstone3/gsdl-manuals/manuals" executable="${release.dir}/greenstone3/gsdl-manuals/manuals/generate-pdf.sh">
-				<arg line="u en" />
-			</exec>
-		</if>
-	</target>
-
-
-
-
-	<!--
-
-		third level targets
-
-	-->
-	<target name="mgpp-add-static">
-		<if><bool><istrue value="${execute}"/></bool>
-			<rsr file="${release.dir}/greenstone3/gs2build/indexers/mgpp/configure.in" pattern="^LDFLAGS=$" replacement="LDFLAGS=-static" />
-			<exec dir="${release.dir}/greenstone3/gs2build/indexers/mgpp" executable="autoconf" output="${release.dir}/greenstone3/gs2build/indexers/mgpp/configure">
-				<arg line="configure.in"/>
-			</exec>
-		</if>
-	</target>
-	<target name="mg-add-static">
-		<if><bool><istrue value="${execute}"/></bool>
-			<rsr file="${release.dir}/greenstone3/gs2build/indexers/mg/configure.in" pattern="^LDFLAGS=$" replacement="LDFLAGS=-static" />
-			<exec dir="${release.dir}/greenstone3/gs2build/indexers/mg" executable="autoconf" output="${release.dir}/greenstone3/gs2build/indexers/mg/configure">
-				<arg line="configure.in"/>
-			</exec>
-		</if>
-	</target>
-	<target name="gs2buildextra-add-static">
-		<if><bool><istrue value="${execute}"/></bool>
-			<rsr file="${release.dir}/greenstone3/gs2build/gs2build-extra/packages.configure" pattern="^ENVIRONMENT=&quot;&quot;$" replacement="ENVIRONMENT=&quot;LDFLAGS=-static&quot;" />
-			<rsr file="${release.dir}/greenstone3/gs2build/gs2build-extra/configure.in" pattern="^LDFLAGS=$" replacement="LDFLAGS=-static" />
-		</if>
-	</target>
-
-	<target name="wv-add-static">
-		<if><bool><istrue value="${execute}"/></bool>
-			<rsr file="${release.dir}/greenstone3/gs2build/packages/wv/wv-gs/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" />
-		</if>
-	</target>
-	<target name="xlhtml-add-static">
-		<if><bool><istrue value="${execute}"/></bool>
-			<rsr file="${release.dir}/greenstone3/gs2build/packages/xlhtml/xlhtml-0.4.9.0/xlhtml/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" />
-		</if>
-	</target>
-	<target name="ppthtml-add-static">
-		<if><bool><istrue value="${execute}"/></bool>
-			<rsr file="${release.dir}/greenstone3/gs2build/packages/xlhtml/xlhtml-0.4.9.0/ppthtml/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" />
-		</if>
-	</target>
-	<target name="rtftohtml-add-static">
-		<if><bool><istrue value="${execute}"/></bool>
-			<rsr file="${release.dir}/greenstone3/gs2build/packages/rtftohtml/rtftohtml_src/Makefile" pattern="-o rtftohtml.{2}EXEEXT.{1}" replacement="-o rtftohtml\$(EXEEXT) -static" />
-		</if>
-	</target>
-	<target name="gdbm-add-static">
-		<if><bool><istrue value="${execute}"/></bool>
-			<rsr file="${release.dir}/greenstone3/src/packages/javagdbm/jni/Makefile" pattern="^(GDBM_LIBS)\s*=\s*(.*)-lgdbm(.*)$" replacement="$1=$2/usr/lib/libgdbm.a$3" />
-		</if>
-	</target>
-
-	<target name="export-greenstone3">
-		<if><bool><istrue value="${execute}"/></bool>
-			<mkdir dir="${release.dir}/distributions"/>
-			<delete dir="${release.dir}/distribution/greenstone3"/>
-			<svn>
-				<export srcurl="${svn.root}/greenstone3/${branch.path}" destPath="${release.dir}/distribution/greenstone3"/>
-			</svn>
-		</if>
-	</target>
-
-	<target name="dist-set-version-number-property">
-		<if><bool><istrue value="${execute}"/></bool>
-			<rsr file="${release.dir}/distribution/greenstone3/resources/java/global.properties.in" pattern="@gsdl3version@" replacement="${version}" />
-		</if>
-	</target>
-
-	<target name="create-distributions-1">
-		<if><bool><istrue value="${execute}"/></bool>
-			<ant antfile="${release.dir}/dist-resources/dist-build.xml" dir="${release.dir}/dist/greenstone3" target="create-distribution-1" />
-		</if>
-	</target>
-
-	<target name="create-distributions-2">
-		<if><bool><istrue value="${execute}"/></bool>
-			<ant antfile="${release.dir}/dist/greenstone3/dist-resources/dist-build.xml" dir="${release.dir}/dist/greenstone3" target="create-distribution-2" />
-		</if>
-	</target>
-
-	<target name="create-distributions-3">
-		<if><bool><istrue value="${execute}"/></bool>
-			<ant antfile="${release.dir}/dist/greenstone3/dist-resources/dist-build.xml" dir="${release.dir}/dist/greenstone3" target="create-distribution-3" />
-		</if>
-	</target>
-
-	<target name="copy-over-build-xml">
-		<if><bool><istrue value="${execute}"/></bool>
-			<move file="${release.dir}/dist/greenstone3/dist-build.xml" tofile="${release.dir}/dist/greenstone3/build.xml"/>
-		</if>
-	</target>
-
-	<target name="insert-user-manual">
-		<if><bool><istrue value="${execute}"/></bool>
-			<copy file="${release.dir}/greenstone3/gsdl-manuals/manuals/build/en/pdf/User_en.pdf" tofile="${release.dir}/distribution/greenstone3/docs/manual/gs2_user_en.pdf"/>
-		</if>
-	</target>
-
-	<target name="insert-compiled-binaries">
-		<if><bool><istrue value="${execute}"/></bool>
-
-			<mkdir dir="${release.dir}/distribution/greenstone3/Linux/lib/jni"/>
-			<exec executable="find"><arg line="${release.dir}/greenstone3/lib/jni ! -name '.' -maxdepth 1 -exec cp {} ${release.dir}/distribution/greenstone3/Linux/lib/jni &#59;"/></exec>
-
-			<mkdir dir="${release.dir}/distribution/greenstone3/gs2build/Unix/bin/linux"/>
-			<exec executable="find"><arg line="${release.dir}/greenstone3/gs2build/bin/linux ! -name '.' -maxdepth 1  -exec cp {} ${release.dir}/distribution/greenstone3/gs2build/Unix/bin/linux &#59;"/></exec>
-
-			<mkdir dir="${release.dir}/distribution/greenstone3/gs2build/bin/java"/>
-			<exec executable="find"><arg line="${release.dir}/greenstone3/gs2build/bin/java ! -name '.' -maxdepth 1  -exec cp {} ${release.dir}/distribution/greenstone3/gs2build/bin/java &#59;"/></exec>
-
-		</if>
-	</target>
-
-
-
-
-</project>
