Changeset 17815 for release-kits

Show
Ignore:
Timestamp:
11.11.2008 15:34:58 (11 years ago)
Author:
oranfry
Message:

the targets to intall the source releases on mac and windows

Location:
release-kits
Files:
4 modified

Legend:

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

    r17814 r17815  
    107107 
    108108 
     109    <target name="Source Release" depends=""> 
     110 
     111        <!-- create the installation directory --> 
     112        <echo message="Creating Installation directory"/> 
     113        <mkdir dir="${installDir}"/> 
     114 
     115        <echo>Installing Source Release</echo> 
     116        <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="source-release.lzma"/></patternset></unzip> 
     117        <sevenzip task="decode" input="${basedir}/source-release.lzma" output="${basedir}/source-release.comp"/> 
     118        <delete file="source-release.lzma"/> 
     119        <unzip src="${basedir}/source-release.comp" dest="${installDir}"/> 
     120        <delete file="source-release.comp"/> 
     121 
     122        <echo message="Setting Binaries to Executable"/> 
     123        <chmod dir="${installDir}" includes="*.sh,*.bash" perm="775"/> 
     124        <chmod dir="${installDir}/bin/darwin" includes="*" perm="775"/> 
     125        <chmod dir="${installDir}/bin" includes="*" perm="775"/> 
     126        <chmod dir="${installDir}/cgi-bin" includes="*" perm="775"/> 
     127        <chmod dir="${installDir}/bin/script" includes="**/*" perm="775"/> 
     128        <chmod dir="${installDir}/gli" includes="*.sh" perm="775"/> 
     129        <echo/> 
     130 
     131        <echo message="Filling in concrete values in config files"/> 
     132        <rsr file="${installDir}/cgi-bin/gsdlsite.cfg" pattern="\*\*GSDLHOME\*\*" replacement="${installDir}"/> 
     133        <rsr file="${installDir}/cgi-bin/gsdlsite.cfg" pattern="^(#?httpprefix).*" replacement="$1 /gsdl"/> 
     134        <rsr file="${installDir}/cgi-bin/gsdlsite.cfg" pattern="^(#?httpimg).*" replacement="$1 /gsdl/images"/> 
     135        <echo/> 
     136 
     137        <echo>Create usage.txt</echo> 
     138        <echo file="${installDir}/etc/usage.txt"></echo> 
     139 
     140        <echo>Creating installation properties file</echo> 
     141        <echo file="${installDir}/etc/installation.properties">#this file is just a placeholder for now</echo> 
     142 
     143        <echo message="Finished"/> 
     144 
     145    </target> 
     146 
     147 
    109148 
    110149</project> 
  • release-kits/mark3/installer/build.xml

    r17814 r17815  
    134134        </target> 
    135135 
     136    <target name="Source Release" depends=""> 
     137 
     138        <!-- create the installation directory --> 
     139        <echo message="Creating Installation directory"/> 
     140        <mkdir dir="${installDir}"/> 
     141 
     142        <echo>Installing Source Release</echo> 
     143        <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="source-release.lzma"/></patternset></unzip> 
     144        <sevenzip task="decode" input="${basedir}/source-release.lzma" output="${basedir}/source-release.comp"/> 
     145        <delete file="source-release.lzma"/> 
     146        <unzip src="${basedir}/source-release.comp" dest="${installDir}"/> 
     147        <delete file="source-release.comp"/> 
     148 
     149        <echo message="Setting Binaries to Executable"/> 
     150        <chmod dir="${installDir}" includes="*.sh" perm="775"/> 
     151        <chmod dir="${installDir}/bin/script" includes="*" perm="775"/> 
     152        <chmod dir="${installDir}/bin" includes="*" perm="775"/> 
     153        <chmod dir="${installDir}/gs2build/bin/darwin" includes="*" perm="775"/> 
     154        <chmod dir="${installDir}/gs2build/bin/script" includes="**/*" perm="775"/> 
     155        <chmod dir="${installDir}/gli" includes="*.sh" perm="775"/> 
     156        <echo/> 
     157 
     158        <!-- set up global properties --> 
     159        <echo message="Setting up global properties"/> 
     160        <copy file="${installDir}/resources/java/global.properties.in" tofile="${installDir}/web/WEB-INF/classes/global.properties" overwrite="true"/> 
     161        <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="(.*)@gsdl3home@(.*)" replacement="$1${installDir}/web$2" /> 
     162        <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="(.*)@tomcat.server@(.*)" replacement="$1localhost$2" /> 
     163        <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="(.*)@tomcat.port@(.*)" replacement="$1${tomcat.port}$2" /> 
     164 
     165        <!-- set up log4j properties--> 
     166        <echo message="Setting up log4j properties"/> 
     167        <copy file="${installDir}/resources/java/log4j.properties.in" tofile="${installDir}/web/WEB-INF/classes/log4j.properties" overwrite="true"/> 
     168        <rsr file="${installDir}/web/WEB-INF/classes/log4j.properties" pattern="(.*)@gsdl3home@(.*)" replacement="$1${installDir}/web$2" /> 
     169 
     170        <echo>Create usage.txt</echo> 
     171        <echo file="${installDir}/gs2build/etc/usage.txt"></echo> 
     172 
     173        <echo>Creating installation properties file</echo> 
     174        <echo file="${installDir}/installation.properties">#this file is just a placeholder for now</echo> 
     175 
     176        <echo message="Finished"/> 
     177 
     178    </target> 
     179 
     180 
    136181 
    137182</project> 
  • 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> 
  • release-kits/wirk3/installer/build.xml

    r17814 r17815  
    198198         
    199199    </target> 
     200 
     201    <target name="Source Release" depends=""> 
     202 
     203        <!-- create the installation directory --> 
     204        <echo message="Creating Installation directory"/> 
     205        <mkdir dir="${installDir}"/> 
     206 
     207        <!-- extract 7za tool --> 
     208        <unzip src="${antinstaller.jar}" dest="${basedir}"> 
     209            <patternset><include name="7za.exe"/></patternset> 
     210        </unzip> 
     211 
     212        <echo>Installing Source Release</echo> 
     213        <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="source-release.lzma"/></patternset></unzip> 
     214        <exec dir="${basedir}" executable="${basedir}/7za.exe"><arg line="x source-release.lzma"/></exec> 
     215        <delete file="source-release.lzma"/> 
     216        <unzip src="${basedir}/source-release.comp" dest="${installDir}"/> 
     217        <delete file="source-release.comp"/> 
     218 
     219        <!-- set gsdlhome in gs2build setup.bat --> 
     220        <echo message="Setting %GSDLHOME% in gs2build\setup.bat"/> 
     221        <rsr file="${installDir}/gs2build/setup.bat" pattern="\*\*GSDLHOME\*\*" replacement="${installDir.local}\gs2build" /> 
     222 
     223        <!-- set up global properties --> 
     224        <echo message="Setting up global properties"/> 
     225        <copy file="${installDir}/resources/java/global.properties.in" tofile="${installDir}/web/WEB-INF/classes/global.properties" overwrite="true"/> 
     226        <rsr file="${installDir}/web/WEB-INF/classes/global.properties"> 
     227            <job pattern="@gsdl3home@" replacement="${installDir.unix}/web" /> 
     228            <job pattern="@tomcat.server@" replacement="${tomcat.server}" /> 
     229            <job pattern="@tomcat.port@" replacement="${tomcat.port}" /> 
     230        </rsr> 
     231 
     232        <!-- set up log4j properties--> 
     233        <echo message="Setting up log4j properties"/> 
     234        <copy file="${installDir}/resources/java/log4j.properties.in" tofile="${installDir}/web/WEB-INF/classes/log4j.properties" overwrite="true"/> 
     235        <rsr file="${installDir}/web/WEB-INF/classes/log4j.properties" pattern="@gsdl3home@" replacement="${installDir.unix}/web"/> 
     236 
     237        <echo>Create usage.txt</echo> 
     238        <echo file="${installDir}/gs2build/etc/usage.txt"></echo> 
     239 
     240        <echo message="Creating installation properties file"/> 
     241        <echo file="${installDir}\installation.properties">installed.startmenu.path:${startmenu.path.unix}</echo> 
     242         
     243    </target> 
     244 
     245 
    200246     
    201247</project>