Ignore:
Timestamp:
2008-11-11T15:34:58+13:00 (15 years ago)
Author:
oranfry
Message:

the targets to intall the source releases on mac and windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release-kits/wirk2/installer/build.xml

    r17814 r17815  
    185185    </target>
    186186
     187    <target name="Source Release" depends="">
     188
     189        <!-- create the installation directory -->
     190        <echo message="Creating Installation directory"/>
     191        <mkdir dir="${installDir}"/>
     192
     193        <!-- extract 7za tool -->
     194        <unzip src="${antinstaller.jar}" dest="${basedir}">
     195            <patternset><include name="7za.exe"/></patternset>
     196        </unzip>
     197
     198        <echo>Installing Source Release</echo>
     199        <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="source-release.lzma"/></patternset></unzip>
     200        <exec dir="${basedir}" executable="${basedir}/7za.exe"><arg line="x source-release.lzma"/></exec>
     201        <delete file="source-release.lzma"/>
     202        <unzip src="${basedir}/source-release.comp" dest="${installDir}"/>
     203        <delete file="source-release.comp"/>
     204
     205        <!-- figure out the start menu path -->
     206        <getfreepath path="${win32.personal.programs_menu}\Greenstone-@version@" property="startmenu.path"/>       
     207        <path id="startmenu.path.path" path="${startmenu.path}"/>
     208        <pathconvert targetos="unix" property="startmenu.path.unix" refid="startmenu.path.path"/>
     209
     210        <echo message="Filling in concrete values in config files"/>
     211        <rsr file="${installDir}/setup.bat" pattern="\*\*GSDLHOME\*\*" replacement="${installDir}"/>
     212        <rsr file="${installDir}/cgi-bin/gsdlsite.cfg">
     213            <job pattern="\*\*GSDLHOME\*\*" replacement="${installDir}"/>
     214            <job pattern="^(#?httpprefix).*" replacement="$1 /gsdl"/>
     215            <job pattern="^(#?httpimg).*" replacement="$1 /gsdl/images"/>
     216        </rsr>
     217        <rsr file="${installDir}/gsdlsite.cfg" pattern="@gsdlhome@" replacement="${installDir}"/>
     218
     219        <echo>Create usage.txt</echo>
     220        <echo file="${installDir}/etc/usage.txt"></echo>
     221               
     222        <echo message="Creating installation properties file"/>
     223        <echo file="${installDir}\etc\installation.properties">installed.startmenu.path:${startmenu.path.unix}</echo>
     224       
     225        <echo message="Finished"/>
     226       
     227    </target>
     228
     229
    187230</project>
Note: See TracChangeset for help on using the changeset viewer.