Subversion Repositories DevTools

Rev

Rev 1808 | Go to most recent revision | 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
		-->
18
		<attribute name="package" 
19
		           description="The name of the package in dpkg_archive."/>
20
 
21
		<!--	Indicates which version of the package is being released and also the direcotry when combinded with
22
			@{dpkg.archive} and @{package}.
23
		-->		
24
		<attribute name="version" 
25
		           description="The version being released."/>
26
 
27
		<!--	The location of the files to release to @{dpkg.archive}/@{package}/@{version}.
28
		-->
29
		<attribute name="fromdir" 
30
		           default="${basedir}/build/pkg" 
31
		           description="The location of the files to release."/>
32
 
33
		<!--	The location of dpkg archive.
34
		-->
35
		<attribute name="dpkg.archive" 
36
		           default="${env.GBE_DPKG}" 
37
		           description="Where the files will be released to."/>
38
 
39
		<!--	Optionally which files to include and exclude using anything you can put inside a files set.
40
		-->
41
		<element   name="files" 
42
		           optional="true" 
43
				   implicit="true" 
44
		           description="Used to explicitly include and exclude files that are in the fromdir."/>
45
 
46
		<!--
47
			Copy the files (optionally specified by files element) from the location specified by @{fromdir} to the 
48
			location specified by @{dpkg.archive}/@{package}/@{version}.
49
		-->
1808 mbrodzia 50
		<sequential>
51
 
52
			<mkdir dir="@{dpkg.archive}/@{package}/@{version}"/>
53
 
54
			<copy todir="@{dpkg.archive}/@{package}/@{version}">
1810 otorres 55
				<fileset dir="@{fromdir}">
56
					<files/>
57
				</fileset>
1808 mbrodzia 58
			</copy>
59
 
60
		</sequential>
61
 
62
	</macrodef>
63
 
64
</project>