Changeset 17786 for release-kits/lirk3
- Timestamp:
- 2008-11-07T14:36:58+13:00 (15 years ago)
- Location:
- release-kits/lirk3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/lirk3/ant-scripts/create-components.xml
r17721 r17786 13 13 <target name="prepare-components"> 14 14 <antcall target="prepare-core-component" /> 15 <antcall target="prepare-sourcecode-component" />16 15 <antcall target="prepare-ant-component" /> 17 16 <antcall target="prepare-tomcat-component" /> 18 17 <antcall target="prepare-imagemagick-component" /> 19 <antcall target="prepare-sourcecode-core-component" /> 18 19 <antcall target="prepare-sourcecode-component" /> 20 21 <antcall target="prepare-source-release" /> 20 22 </target> 21 23 22 24 <target name="compress-components"> 23 25 <antcall target="compress-core-component" /> 24 <antcall target="compress-sourcecode-component" />25 26 <antcall target="compress-ant-component" /> 26 27 <antcall target="compress-tomcat-component" /> 27 28 <antcall target="compress-imagemagick-component" /> 28 <antcall target="compress-sourcecode-core-component" /> 29 30 <!--<antcall target="compress-sourcecode-component" />--> 31 32 <antcall target="compress-source-release" /> 29 33 </target> 30 34 … … 67 71 </target> 68 72 69 <!-- sourcecode-core -->70 <target name="prepare-sourcecode-core-component">71 <delete dir="components/tmp/sourcecode-core"/>72 <mkdir dir="components/tmp/sourcecode-core"/>73 74 <copy todir="components/tmp/sourcecode-core" overwrite="true">75 <fileset dir="distribution/source">76 <include name="gli/**/*"/>77 <include name="docs/**/*"/>78 <include name="resources/**/*"/>79 <include name="web/**/*"/>80 <include name="gs2build/etc/**/*"/>81 <include name="gs2build/setup.bash"/>82 <include name="build.xml"/>83 <include name="build.properties"/>84 <include name="*.sh"/>85 <include name="*.txt"/>86 </fileset>87 </copy>88 <zip destfile="components/sourcecode-core.comp" basedir="components/tmp/sourcecode-core" compress="false"/>89 </target>90 91 <target name="compress-sourcecode-core-component">92 <sevenzip task="encode" input="components/sourcecode-core.comp" output="components/sourcecode-core.lzma" dictionnary="26"/>93 </target>94 95 73 <!-- sourcecode --> 96 74 <target name="prepare-sourcecode-component"> … … 108 86 </copy> 109 87 110 <zip destfile="components/sourcecode.comp" basedir="components/tmp/sourcecode" compress="false" />111 88 <zip destfile="components/Greenstone-${version}-linux-sourcecode.zip" basedir="components/tmp/sourcecode" compress="true"/> 112 89 </target> … … 173 150 </target> 174 151 152 153 <!-- sourcecode-release --> 154 <target name="prepare-source-release"> 155 <delete dir="components/tmp/source-release"/> 156 <mkdir dir="components/tmp/source-release"/> 157 158 <copy todir="components/tmp/source-release" overwrite="true"> 159 <fileset dir="distribution/source"/> 160 </copy> 161 <zip destfile="components/source-release.comp" basedir="components/tmp/source-release" compress="false"/> 162 </target> 163 164 <target name="compress-source-release"> 165 <sevenzip task="encode" input="components/source-release.comp" output="components/source-release.lzma" dictionnary="26"/> 166 </target> 167 168 175 169 </project> -
release-kits/lirk3/ant-scripts/create-distribution.xml
r17652 r17786 9 9 <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distribution/greenstone3/gli"/></antcall> 10 10 <antcall target="insert-user-manual"/> 11 <antcall target="insert-uninstaller"><param name="script-format" value="sh"/></antcall> <!-- from rk3-targets --> 11 12 12 13 <antcall target="copy-web-to-source-greenstone3" /> <!-- from gs3-targets --> … … 16 17 <property name="branch.path" value="${branch.path}"/> 17 18 </ant> 18 19 19 <ant antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" target="create-distribution-2" inheritAll="false"> 20 20 <property name="app.version" value="${version}"/> 21 21 <property name="branch.path" value="${branch.path}"/> 22 22 </ant> 23 24 23 <ant antfile="${lirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" target="create-distribution-3" inheritAll="false"> 25 24 <property name="app.version" value="${version}"/> 26 25 <property name="branch.path" value="${branch.path}"/> 27 26 </ant> 28 29 27 <antcall target="copy-over-build-xml" /> 30 28 <antcall target="insert-compiled-binaries"/> 31 29 <antcall target="export-imagemagick-linux-binaries" /> 32 <antcall target="insert-uninstaller"><param name="script-format" value="sh"/></antcall> <!-- from rk3-targets -->33 30 34 31 <antcall target="strip-svn-dirs"><param name="dir" value="distribution"/></antcall> <!-- from init --> -
release-kits/lirk3/installer/antinstall-config.xml
r17765 r17786 25 25 26 26 <!-- simple intro page --> 27 <page type="input" name="intro" displayText=""> 27 <page 28 type="input" 29 name="intro" 30 displayText="" 31 <!-- start source release --> 32 target="Source Release" 33 <!-- end source release --> 34 > 35 28 36 <comment name="welcome-message"/> 37 29 38 </page> 30 39 … … 53 62 <comment name="choose-components"/> 54 63 64 <!-- start binary release --> 55 65 <target 56 66 target="Initialising" … … 61 71 hidden="true"/> 62 72 63 <!-- start binary release core -->64 73 <target 65 74 target="Installing Core System" … … 68 77 defaultValue="true" 69 78 force="true"/> 70 <!-- end binary release core -->71 72 <!-- start source release core -->73 <target74 target="Installing Source Code Core"75 diskRequirement="@component.size.sourcecode-core@"76 displayText=""77 defaultValue="true"78 />79 <!-- end source release core -->80 79 81 80 <!-- start bundled components --> … … 99 98 <!-- end bundled components --> 100 99 101 <!-- start sourcecode -->102 <target103 target="Installing Source Code"104 diskRequirement="@component.size.sourcecode@"105 defaultValue="false"106 displayText=""/>107 <!-- end sourcecode -->108 109 100 </page> 101 <!-- end binary release --> 110 102 111 103 <!-- start bundled components --> -
release-kits/lirk3/installer/build.xml
r17765 r17786 72 72 </target> 73 73 74 <!-- sourcecode core system -->75 <target name="Installing Source Code Core">76 77 <echo>Installing Source Code Core</echo>78 <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="sourcecode-core.lzma"/></patternset></unzip>79 <sevenzip task="decode" input="${basedir}/sourcecode-core.lzma" output="${basedir}/sourcecode-core.comp"/>80 <delete file="sourcecode-core.lzma"/>81 <unzip src="${basedir}/sourcecode-core.comp" dest="${installDir}"/>82 <delete file="sourcecode-core.comp"/>83 84 <echo>Setting up global properties</echo>85 <copy file="${installDir}/resources/java/global.properties.in" tofile="${installDir}/web/WEB-INF/classes/global.properties" overwrite="true"/>86 <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="(.*)@gsdl3home@(.*)" replacement="$1${installDir}/web$2" />87 <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="(.*)@tomcat.server@(.*)" replacement="$1localhost$2" />88 <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="(.*)@tomcat.port@(.*)" replacement="$1${tomcat.port}$2" />89 90 <echo>Setting up log4j properties</echo>91 <copy file="${installDir}/resources/java/log4j.properties.in" tofile="${installDir}/web/WEB-INF/classes/log4j.properties" overwrite="true"/>92 <rsr file="${installDir}/web/WEB-INF/classes/log4j.properties" pattern="(.*)@gsdl3home@(.*)" replacement="$1${installDir}/web$2" />93 94 <echo>Creating installation properties file</echo>95 <echo file="${installDir}/installation.properties">#this file is just a placeholder for now</echo>96 97 </target>98 99 100 <!-- Source -->101 <target name="Installing Source Code" depends="">102 103 <echo>Installing Source Code</echo>104 <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="sourcecode.lzma"/></patternset></unzip>105 <sevenzip task="decode" input="${basedir}/sourcecode.lzma" output="${basedir}/sourcecode.comp"/>106 <delete file="sourcecode.lzma"/>107 <unzip src="${basedir}/sourcecode.comp" dest="${installDir}"/>108 <delete file="sourcecode.comp"/>109 110 </target>111 112 74 <!-- imagemagick --> 113 75 <target name="Installing ImageMagick"> … … 160 122 </target> 161 123 124 <!-- source release --> 125 <target name="Source Release"> 126 127 <echo>Installing Source Release</echo> 128 <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="source-release.lzma"/></patternset></unzip> 129 <sevenzip task="decode" input="${basedir}/source-release.lzma" output="${basedir}/source-release.comp"/> 130 <delete file="source-release.lzma"/> 131 <unzip src="${basedir}/source-release.comp" dest="${installDir}"/> 132 <delete file="source-release.comp"/> 133 134 <echo>Setting up global properties</echo> 135 <copy file="${installDir}/resources/java/global.properties.in" tofile="${installDir}/web/WEB-INF/classes/global.properties" overwrite="true"/> 136 <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="(.*)@gsdl3home@(.*)" replacement="$1${installDir}/web$2" /> 137 <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="(.*)@tomcat.server@(.*)" replacement="$1localhost$2" /> 138 <rsr file="${installDir}/web/WEB-INF/classes/global.properties" pattern="(.*)@tomcat.port@(.*)" replacement="$1${tomcat.port}$2" /> 139 140 <echo>Setting up log4j properties</echo> 141 <copy file="${installDir}/resources/java/log4j.properties.in" tofile="${installDir}/web/WEB-INF/classes/log4j.properties" overwrite="true"/> 142 <rsr file="${installDir}/web/WEB-INF/classes/log4j.properties" pattern="(.*)@gsdl3home@(.*)" replacement="$1${installDir}/web$2" /> 143 144 <echo>Creating installation properties file</echo> 145 <echo file="${installDir}/installation.properties">#this file is just a placeholder for now</echo> 146 147 </target> 148 149 162 150 </project>
Note:
See TracChangeset
for help on using the changeset viewer.