Changeset 19957
- Timestamp:
- 2009-07-06T14:48:36+12:00 (15 years ago)
- Location:
- release-kits/sork3
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
release-kits/sork3/ant-scripts/build.xml
r19954 r19957 23 23 <import file="../greenstone3/ant-scripts/rk3-targets.xml"/> 24 24 25 <!-- helper constant --> 26 <property name="dist.dirname" value="Greenstone-${version}-source-distribution"/> 27 25 28 <!-- THE MAIN TARGET --> 26 <target name="sork2" depends="init"> 27 <antcall target="export-greenstone3"><param name="dest" value="distributions/Greenstone-${version}-source-distribution"/></antcall> 28 <antcall target="gsdl-set-version-numbers"><param name="gsdl.basedir" value="${basedir}/distributions/Greenstone-${version}-source-distribution"/></antcall> 29 <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distributions/Greenstone-${version}-source-distribution/gli"/></antcall> 29 <target name="sork3" depends="init"> 30 <antcall target="export-greenstone3"><param name="dest" value="distributions/${dist.dirname}"/></antcall> 31 <antcall target="greenstone3-set-version-numbers"><param name="greenstone3basedir" value="${basedir}/distributions/${dist.dirname}"/></antcall> 32 <ant dir="distributions/${dist.dirname}" target="prepare"> 33 <property name="properties.accepted" value="true"/> 34 <property name="app.version" value="${version}"/> 35 </ant> 36 <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distributions/${dist.dirname}/gli"/></antcall> 30 37 <antcall target="insert-winbin"/> 31 <antcall target="insert-windows-perl"><param name="todir" value="${basedir}/distributions/ Greenstone-${version}-source-distribution/bin/windows"/></antcall>38 <antcall target="insert-windows-perl"><param name="todir" value="${basedir}/distributions/${dist.dirname}/gs2build/bin/windows"/></antcall> 32 39 <antcall target="tweak-files"/> 33 40 <antcall target="create-archives"/> … … 48 55 49 56 <target name="tweak-files"> 50 <delete file="distributions/ Greenstone-${version}-source-distribution/bin/linux/mgquery_old" />57 <delete file="distributions/${dist.dirname}/gs2build/bin/linux/mgquery_old" /> 51 58 </target> 52 59 53 60 <target name="insert-winbin"> 54 <delete dir="distributions/ Greenstone-${version}-source-distribution/bin/windows"/>61 <delete dir="distributions/${dist.dirname}/gs2build/bin/windows"/> 55 62 <svn> 56 <export srcurl="${svn.root}/other-projects/trunk/winbin/bin" destPath="distributions/ Greenstone-${version}-source-distribution/bin/windows"/>63 <export srcurl="${svn.root}/other-projects/trunk/winbin/bin" destPath="distributions/${dist.dirname}/gs2build/bin/windows"/> 57 64 </svn> 58 <get src="http://greenstone.org/release-snapshots/server.exe" dest="distributions/Greenstone-${version}-source-distribution/bin/windows/server.exe"/> 59 60 <delete dir="distributions/Greenstone-${version}-source-distribution/bin/windows/imagemagick"/> 61 <delete dir="distributions/Greenstone-${version}-source-distribution/bin/windows/ghostscript"/> 65 <delete dir="distributions/${dist.dirname}/gs2build/bin/windows/imagemagick"/> 66 <delete dir="distributions/${dist.dirname}/gs2build/bin/windows/ghostscript"/> 62 67 </target> 63 68 64 69 <target name="create-archives"> 65 70 <mkdir dir="products"/> 66 <delete file="products/ Greenstone-${version}-source-distribution.zip"/>67 <zip destfile="products/ Greenstone-${version}-source-distribution.zip" basedir="distributions" includes="Greenstone-${version}-source-distribution/**/*"/>71 <delete file="products/${dist.dirname}.zip"/> 72 <zip destfile="products/${dist.dirname}.zip" basedir="distributions" includes="${dist.dirname}/**/*"/> 68 73 <exec dir="distributions" executable="tar"> 69 <arg line="-czf ../products/ Greenstone-${version}-source-distribution.tar.gz Greenstone-${version}-source-distribution"/>74 <arg line="-czf ../products/${dist.dirname}.tar.gz ${dist.dirname}"/> 70 75 </exec> 71 76 </target> … … 73 78 <target name="create-sourcecode"> 74 79 <!-- create a directory for the sourcecode --> 75 <mkdir dir="distributions/source-component "/>80 <mkdir dir="distributions/source-component/gs2build"/> 76 81 77 82 <!-- copy the files in --> 78 <exec dir="distributions/ Greenstone-${version}-source-distribution" executable="cp">83 <exec dir="distributions/${dist.dirname}" executable="cp"> 79 84 <arg value="-r"/> 80 85 81 86 <!-- the bulk sourcecode --> 82 <arg value="build-src"/> 83 <arg value="common-src"/> 84 <arg value="runtime-src"/> 87 <arg value="gs2build/build-src"/> 88 <arg value="gs2build/common-src"/> 85 89 86 <!-- unix build files --> 87 <arg value="acconfig.h"/> 88 <arg value="aclocal.m4"/> 89 <arg value="config.sub"/> 90 <arg value="config.guess"/> 91 <arg value="configtest.pl"/> 92 <arg value="configure"/> 93 <arg value="configure.in"/> 94 <arg value="install-sh"/> 95 <arg value="Makefile.in"/> 96 <arg value="micotest.cpp"/> 97 <arg value="config.h.in"/> 98 <arg value="Install.txt"/> 90 <!-- destination --> 91 <arg value="../source-component/gs2build"/> 99 92 100 <!-- windows build files --> 101 <arg value="win32.mak"/> 102 <arg value="win32cfg.h"/> 103 <arg value="makegs2.bat"/> 93 </exec> 94 95 <!-- copy the files in --> 96 <exec dir="distributions/${dist.dirname}" executable="cp"> 97 <arg value="-r"/> 98 99 <!-- the bulk sourcecode --> 100 <arg value="src"/> 104 101 105 102 <!-- destination --> … … 109 106 110 107 <!-- unzip some windows packages --> 111 <unzip src="distributions/source-component/ common-src/indexers/packages/windows/iconv/iconv.zip" dest="distributions/source-component/common-src/indexers/packages/windows/iconv"/>112 <delete file="distributions/source-component/ common-src/indexers/packages/windows/iconv/iconv.zip"/>108 <unzip src="distributions/source-component/gs2build/common-src/indexers/packages/windows/iconv/iconv.zip" dest="distributions/source-component/gs2build/common-src/indexers/packages/windows/iconv"/> 109 <delete file="distributions/source-component/gs2build/common-src/indexers/packages/windows/iconv/iconv.zip"/> 113 110 114 <unzip src="distributions/source-component/ common-src/packages/windows/crypt/crypt.zip" dest="distributions/source-component/common-src/packages/windows/crypt"/>115 <delete file="distributions/source-component/ common-src/packages/windows/crypt/crypt.zip"/>111 <unzip src="distributions/source-component/gs2build/common-src/packages/windows/crypt/crypt.zip" dest="distributions/source-component/gs2build/common-src/packages/windows/crypt"/> 112 <delete file="distributions/source-component/gs2build/common-src/packages/windows/crypt/crypt.zip"/> 116 113 117 <unzip src="distributions/source-component/ common-src/packages/windows/expat/expat.zip" dest="distributions/source-component/common-src/packages/windows/expat"/>118 <delete file="distributions/source-component/ common-src/packages/windows/expat/expat.zip"/>114 <unzip src="distributions/source-component/gs2build/common-src/packages/windows/expat/expat.zip" dest="distributions/source-component/gs2build/common-src/packages/windows/expat"/> 115 <delete file="distributions/source-component/gs2build/common-src/packages/windows/expat/expat.zip"/> 119 116 120 <unzip src="distributions/source-component/ common-src/packages/windows/stlport/stlport.zip" dest="distributions/source-component/common-src/packages/windows/stlport"/>121 <delete file="distributions/source-component/ common-src/packages/windows/stlport/stlport.zip"/>117 <unzip src="distributions/source-component/gs2build/common-src/packages/windows/stlport/stlport.zip" dest="distributions/source-component/gs2build/common-src/packages/windows/stlport"/> 118 <delete file="distributions/source-component/gs2build/common-src/packages/windows/stlport/stlport.zip"/> 122 119 123 <exec executable="tar" dir="distributions/source-component/ common-src/packages/sqlite"><arg value="-xzf"/><arg value="sqlite-amalgamation-3.5.9.tar.gz"/></exec>124 <delete file="distributions/source-component/ common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz"/>120 <exec executable="tar" dir="distributions/source-component/gs2build/common-src/packages/sqlite"><arg value="-xzf"/><arg value="sqlite-amalgamation-3.5.9.tar.gz"/></exec> 121 <delete file="distributions/source-component/gs2build/common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz"/> 125 122 126 <exec executable="tar" dir="distributions/source-component/ common-src/packages/expat"><arg value="-xzf"/><arg value="expat-1.95.8.tar.gz"/></exec>127 <delete file="distributions/source-component/ common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz"/>123 <exec executable="tar" dir="distributions/source-component/gs2build/common-src/packages/expat"><arg value="-xzf"/><arg value="expat-1.95.8.tar.gz"/></exec> 124 <delete file="distributions/source-component/gs2build/common-src/packages/sqlite/sqlite-amalgamation-3.5.9.tar.gz"/> 128 125 129 126 <!-- archive it --> -
release-kits/sork3/bin/sork3
r19954 r19957 1 1 #!/bin/bash 2 export rk_name="sork 2"3 export rk_fullname="Source Release Kit for Greenstone 2"4 export RK_HOME=$SORK 2_HOME5 $SORK 2_HOME/linux/rk $*2 export rk_name="sork3" 3 export rk_fullname="Source Release Kit for Greenstone3" 4 export RK_HOME=$SORK3_HOME 5 $SORK3_HOME/linux/rk $* 6 6
Note:
See TracChangeset
for help on using the changeset viewer.