Subversion Repositories DevTools

Rev

Rev 1810 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1808 mbrodzia 1
<project name="dpkg-copy-macrodef">
2
 
1810 otorres 3
	<!--	C O P Y R I G H T   N O T I C E
4
			This material is confidential to ERG and may not be disclosed in whole 
5
			or in part to any third party nor used in any manner whatsoever other
6
			than for the purposes expressly consented to by ERG in writing.
7
 
8
			This material is also copyright and may not be reproduced, stored in a
9
			retrieval system or transmitted in any form or by any means in whole or
10
			in part without the express written consent of ERG.
11
	-->
12
 
1808 mbrodzia 13
	<macrodef name="dpkg-copy">
14
 
1810 otorres 15
		<!--	Indicates the package being released, and also the directory where it will be released 
16
			when combined with @{dpkg.archive} and @{version}.
17
		-->
1812 jgill 18
		<attribute 	name="package"
19
					default="${packagename}"
20
					description="The name of the package in release manager and dpkg_archive."/>
1810 otorres 21
 
22
		<!--	Indicates which version of the package is being released and also the direcotry when combinded with
23
			@{dpkg.archive} and @{package}.
24
		-->		
1812 jgill 25
		<attribute 	name="version" 
26
					default="${packageversion}"
27
					description="The version of the package in release manager and dpkg_archive."/>
1810 otorres 28
 
29
		<!--	The location of the files to release to @{dpkg.archive}/@{package}/@{version}.
30
		-->
31
		<attribute name="fromdir" 
32
		           default="${basedir}/build/pkg" 
33
		           description="The location of the files to release."/>
34
 
35
		<!--	The location of dpkg archive.
36
		-->
37
		<attribute name="dpkg.archive" 
38
		           default="${env.GBE_DPKG}" 
39
		           description="Where the files will be released to."/>
40
 
41
		<!--	Optionally which files to include and exclude using anything you can put inside a files set.
42
		-->
43
		<element   name="files" 
44
		           optional="true" 
45
				   implicit="true" 
46
		           description="Used to explicitly include and exclude files that are in the fromdir."/>
47
 
48
		<!--
49
			Copy the files (optionally specified by files element) from the location specified by @{fromdir} to the 
50
			location specified by @{dpkg.archive}/@{package}/@{version}.
51
		-->
1808 mbrodzia 52
		<sequential>
53
 
54
			<mkdir dir="@{dpkg.archive}/@{package}/@{version}"/>
55
 
56
			<copy todir="@{dpkg.archive}/@{package}/@{version}">
1810 otorres 57
				<fileset dir="@{fromdir}">
58
					<files/>
59
				</fileset>
1808 mbrodzia 60
			</copy>
61
 
62
		</sequential>
63
 
64
	</macrodef>
65
 
66
</project>