Changeset 17652 for release-kits/mark2
- Timestamp:
- 2008-10-31T15:08:31+13:00 (15 years ago)
- Location:
- release-kits/mark2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/mark2/ant-scripts/create-components.xml
r17453 r17652 3 3 4 4 <!-- create components from the distribution folder --> 5 6 <!-- 1st level --> 5 7 <target name="create-components"> 6 <antcall target="create-core-component" /> 7 <antcall target="create-sourcecode-component" /> 8 <antcall target="prepare-components" /> 9 <antcall target="compress-components" /> 10 </target> 11 12 <!-- 2nd level --> 13 <target name="prepare-components"> 14 <antcall target="prepare-core-component" /> 15 <antcall target="prepare-sourcecode-component" /> 16 <antcall target="prepare-sourcecode-core-component" /> 8 17 </target> 9 18 19 <target name="compress-components"> 20 <antcall target="compress-core-component" /> 21 <antcall target="compress-sourcecode-component" /> 22 <antcall target="compress-sourcecode-core-component" /> 23 </target> 24 25 <!-- 3rd level --> 10 26 <target name="create-core-component"> 11 27 <antcall target="prepare-core-component" /> … … 27 43 <include name="**/*"/> 28 44 29 <!-- sourcecode --> 45 <!-- exclude sourcecode --> 46 <exclude name="common-src"/> 30 47 <exclude name="common-src/**/*"/> 48 <exclude name="runtime-src"/> 31 49 <exclude name="runtime-src/**/*"/> 50 <exclude name="build-src"/> 32 51 <exclude name="build-src/**/*"/> 33 52 … … 61 80 </target> 62 81 82 <target name="prepare-sourcecode-core-component"> 83 <delete dir="components/tmp/sourcecode-core"/> 84 <mkdir dir="components/tmp/sourcecode-core"/> 85 86 <copy todir="components/tmp/sourcecode-core" overwrite="true"> 87 <fileset dir="distributions/source"> 88 <include name="macros/**/*"/> 89 <include name="images/**/*"/> 90 <include name="etc/**/*"/> 91 <include name="gli/**/*"/> 92 <include name="collect/**/*"/> 93 <include name="doc/**/*"/> 94 <include name="setup.bash"/> 95 </fileset> 96 </copy> 97 <zip destfile="components/sourcecode-core.comp" basedir="components/tmp/sourcecode-core" compress="false" includes="**/*"/> 98 </target> 99 100 <target name="compress-sourcecode-core-component"> 101 <sevenzip task="encode" input="components/sourcecode-core.comp" output="components/sourcecode-core.lzma" dictionnary="26"/> 102 </target> 103 63 104 </project> -
release-kits/mark2/ant-scripts/create-distribution.xml
r17523 r17652 3 3 4 4 <target name="create-distribution"> 5 5 6 <antcall target="export-gsdl-gli" /> 6 7 <antcall target="dist-set-version" /> 7 <antcall target="gli-set-version-numbers"> 8 <param name="glibasedir" value="${basedir}/distributions/web/gli"/> 9 </antcall> 8 <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distributions/web/gli"/></antcall> 9 <antcall target="drop-in-docs" /> 10 <antcall target="tweak-files" /> 11 <antcall target="remove-unneeded-files-1" /> 12 13 <antcall target="copy-web-to-source" /> <!-- from init --> 14 10 15 <antcall target="drop-in-binaries" /> 11 16 <antcall target="drop-in-demo-collection" /> 12 <antcall target="drop-in-docs" />13 17 <antcall target="insert-uninstaller"><param name="script-format" value="sh"/></antcall> <!-- from rk2-targets --> 14 <antcall target="insert-export-to-cd-package"/> <!-- from rk2-targets --> 18 <antcall target="insert-export-to-cd-package"/> <!-- from rk2-targets --> 19 <antcall target="export-imagemagick-linux-binaries" /> 15 20 <antcall target="compile-gli" /> 16 <antcall target="tweak-files" /> 21 <antcall target="remove-unneeded-files-2" /> 22 17 23 </target> 18 24 … … 24 30 <export srcurl="${svn.root}/gli/${branch.path}" destPath="distributions/web/gli"/> 25 31 </svn> 32 <copy todir="distributions/source"><fileset dir="distributions/web"/></copy> 26 33 </target> 27 34 … … 105 112 <rsr file="${basedir}/distributions/web/Support.htm" pattern="^(\s*<input.* name="gsdl version".* value=").*(".*>)" replacement="$1${version}$2"/> 106 113 107 <echo level="info">Removing signed gatherer</echo> 108 <delete file="${basedir}/distributions/web/bin/java/SignedGatherer.jar" /> 114 </target> 109 115 110 <echo level="info">Removing some unneeded stuff</echo>116 <target name="remove-unneeded-files-1"> 111 117 <delete file="${basedir}/distributions/web/gli/.greenstonestore" /> 112 118 <delete><fileset dir="${basedir}/distributions/web/gli" includes="*.bat"/></delete> 113 119 <delete><fileset dir="${basedir}/distributions/web" includes="*.bat"/></delete> 120 <delete dir="${basedir}/distributions/web/common-src/packages/windows"/> 114 121 </target> 115 122 123 <target name="remove-unneeded-files-2"> 124 <delete file="${basedir}/distributions/web/bin/java/SignedGatherer.jar" /> 125 </target> 126 127 116 128 </project> -
release-kits/mark2/installer/antinstall-config.xml
r17597 r17652 45 45 <comment name="choose-components"/> 46 46 47 <!-- start binary release core --> 47 48 <target 48 49 target="Installing Core System" 49 50 diskRequirement="@component.size.core@" 51 displayText="" 50 52 defaultValue="true" 51 force="true" 52 displayText=""/> 53 force="true"/> 54 <!-- end binary release core --> 55 56 <!-- start source release core --> 57 <target 58 target="Installing Source Code Core" 59 diskRequirement="@component.size.sourcecode-core@" 60 displayText="" 61 defaultValue="true" 62 force="true"/> 63 <!-- end source release core --> 53 64 54 65 <!-- start sourcecode --> -
release-kits/mark2/installer/build.xml
r17611 r17652 87 87 </target> 88 88 89 <!-- sourcecode core system --> 90 <target name="Installing Source Code Core"> 91 92 <echo>Installing Source Code Core</echo> 93 <unzip src="${antinstaller.jar}" dest="${basedir}"><patternset><include name="sourcecode-core.lzma"/></patternset></unzip> 94 <sevenzip task="decode" input="${basedir}/sourcecode-core.lzma" output="${basedir}/sourcecode-core.comp"/> 95 <delete file="sourcecode-core.lzma"/> 96 <unzip src="${basedir}/sourcecode-core.comp" dest="${installDir}"/> 97 <delete file="sourcecode-core.comp"/> 98 99 <echo>Set the installation locale in config files</echo> 100 <rsr file="${installDir}/setup.bash" pattern="^gsdllang=.*" replacement="gsdllang=${language}"/> 101 <rsr file="${installDir}/gli/gli.sh" pattern="^glilang=.*" replacement="glilang=${language}"/> 102 <rsr file="${installDir}/gli/gems.sh" pattern="^glilang=.*" replacement="glilang=${language}"/> 103 104 <rsr 105 file="${installDir}/gli/classes/xml/config.xml" 106 pattern="(<Argument name="general.locale">).*(</Argument>)" 107 replacement="$1${language}$2"/> 108 109 <echo file="${installDir}/etc/main.cfg" append="true" 110 >cgiarg shortname=l argdefault=${language}</echo> 111 112 <rsr file="${installDir}/etc/main.cfg" pattern="^status .*" replacement="status enabled"/> 113 114 <echo>Creating installation properties file</echo> 115 <echo file="${installDir}/etc/installation.properties">#this file is just a placeholder for now</echo> 116 117 </target> 118 119 120 89 121 <!-- Source --> 90 122 <target name="Installing Source Code" depends="">
Note:
See TracChangeset
for help on using the changeset viewer.