Project

General

Profile

« Previous | Next » 

Revision 4658

Added by daigle almost 16 years ago

created a deb-package target which builds a metacat debian package.

View differences:

build.xml
141 141
      <filter token="adminname"            value="${adminname}"/>
142 142
      <filter token="recipient"            value="${recipient}"/>
143 143
   	  <filter token="metacatVersion"       value="${metacat.version}"/>
144
 	  <filter token="metacatReleaseInfo"       value="${metacat.releaseInfo}"/>
144
 	  <filter token="metacatRC"       value="${metacat.releaseCandidate}"/>
145 145

  
146 146
      <filter token="docrooturl"           value="./" />
147 147
      <filter token="mcuser"               value="${mcuser}"/>
......
214 214
	  <!-- directories for creating a Harvest List Editor distribution -->
215 215
      <property name="dist.dir.hle"        value="disthle"/>
216 216
      <property name="ver.dir.hle"         value="${dist.dir.hle}/harvest-list-editor-${release}"/>
217
   	  <property name="pkg.dir"             value="./package" />
218
   	  <property name="deb.pkg.dir"         value="${pkg.dir}/debian" />
217 219
	  
218 220
   	  <property name="ecogrid-target-name" value="metacatImpl"/>
219 221
   	  <property name="ecogrid-module-dest-dir" value =".."/>
......
1161 1163
			excludes="metacat-*/**"/>
1162 1164
		<gzip zipfile="./${name}-bin-${release}.tar.gz" src="./${name}-bin-${release}.tar" />
1163 1165
		<delete file="./${name}-bin-${release}.tar" />
1164
		<delete dir="${dist.dir}" />
1165 1166
	</target>
1166 1167
	
1167 1168
  <target name="distsrc" depends="dist"
......
1195 1196
      <!-- delete file="./${name}-src-${release}.tar" />
1196 1197
      <delete dir="${dist.dir}"/ --> 
1197 1198
  </target>
1199
	
1200
  <target name="deb-package" depends="distbin"
1201
  	  description="create a debian installation package">
1202
  	<delete dir="${deb.pkg.dir}"/>
1203
    <mkdir dir="${deb.pkg.dir}/DEBIAN"/>
1204
  	<copy todir="${deb.pkg.dir}/DEBIAN" filtering="yes">
1205
      <fileset dir="./src/scripts/debian"
1206
               includes="control postinst"/>
1207
    </copy>
1208
  	
1209
    <mkdir dir="${deb.pkg.dir}/usr/share/metacat-${metacat.version}"/>
1210
  	<copy todir="${deb.pkg.dir}/usr/share/metacat-${metacat.version}"
1211
  		  filtering="yes">
1212
      <fileset dir="./src/scripts/debian"
1213
               excludes="control postinst" />
1214
    </copy>
1215
  	<chmod file="${deb.pkg.dir}/DEBIAN/postinst" 
1216
  	       perm="755"/>
1217
  	
1218
  	<copy file="${dist.dir}/knb.war" 
1219
  		  todir="${deb.pkg.dir}/usr/share/metacat-${metacat.version}"/>
1220
  	<copy file="./metacat-bin-${metacat.version}.tar.gz" 
1221
  		  tofile="${deb.pkg.dir}/metacat_${metacat.version}.orig.tar.gz" />
1222
  	
1223
    <exec dir="${pkg.dir}" executable="dpkg" os="Linux, Unix" failonerror="true">
1224
      <arg line="--build debian" />   	
1225
    </exec>
1226
  	
1227
  	<move file="${pkg.dir}/debian.deb" 
1228
  		  tofile="${pkg.dir}/metacat_${metacat.version}${metacat.releaseCandidate}_all.deb"/>
1229
  </target>
1198 1230

  
1199 1231
   <target name="stylesheettest">
1200 1232
     <xslt in="${input}" out="eml.html" style="${style-common-cvsrelpath}/eml-2.0.0/eml-2.0.0.xsl">

Also available in: Unified diff