Subversion Repositories DevTools

Rev

Rev 1808 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1808 Rev 1810
Line 1... Line 1...
1
<project name="dpkg-copy-macrodef">
1
<project name="dpkg-copy-macrodef">
2
 
2
 
3
	<macrodef name="dpkg-copy">
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
	-->
4
 
12
 
5
		<attribute name="package"/>
-
 
6
		<attribute name="version"/>
13
	<macrodef name="dpkg-copy">
7
		<attribute name="fromdir" default="${basedir}/build/pkg"/>
-
 
8
		<attribute name="dpkg.archive" default="${env.JATS_HOME}"/>
-
 
9
 
14
 
-
 
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
		-->
10
		<sequential>
50
		<sequential>
11
 
51
 
12
			<mkdir dir="@{dpkg.archive}/@{package}/@{version}"/>
52
			<mkdir dir="@{dpkg.archive}/@{package}/@{version}"/>
13
 
53
 
14
			<copy todir="@{dpkg.archive}/@{package}/@{version}">
54
			<copy todir="@{dpkg.archive}/@{package}/@{version}">
15
				<fileset dir="@{fromdir}"/>
55
				<fileset dir="@{fromdir}">
-
 
56
					<files/>
-
 
57
				</fileset>
16
			</copy>
58
			</copy>
17
 
59
 
18
		</sequential>
60
		</sequential>
19
 
61
 
20
	</macrodef>
62
	</macrodef>