david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 1 | <project |
| 2 | name="whatisfixed" |
| 3 | default="whatisfixed" |
| 4 | basedir="."> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 5 | |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 6 | <!-- = = = standard properties pattern = = = --> |
| 7 | <!-- |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 8 | Note to be cross-platform, "environment variables" are only appropriate for |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 9 | some variables, e.g. ones we set, since properties are case sensitive, even if |
| 10 | the environment variables on your operating system are not, e.g. it will |
| 11 | be ${env.Path} not ${env.PATH} on Windows --> |
| 12 | <property environment="env" /> |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 13 | |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 14 | <!-- |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 15 | Let users override standard properties, if desired. |
| 16 | If directory, file, or some properties do not exist, |
| 17 | then standard properties will be used. |
| 18 | --> |
| 19 | <property |
| 20 | file="${env.LOCAL_BUILD_PROPERTIES_DIR}/${ant.project.name}.properties" /> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 21 | |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 22 | <!-- = = = end standard properties pattern = = = --> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 23 | |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 24 | <target |
| 25 | name="whatisfixed" |
| 26 | depends="clean"> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 27 | |
| 28 | |
| 29 | |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 30 | <mkdir dir="${whatisfixed.workdir}" /> |
| 31 | <antcall target="releng" /> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 32 | |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 33 | <!-- create what-is-fixed summary files --> |
david_williams | 39c5f65 | 2008-01-02 07:08:39 +0000 | [diff] [blame] | 34 | <ant antfile="${builder}"> |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 35 | <property |
| 36 | name="wtp.builder.home" |
david_williams | d4b1fd3 | 2008-01-02 04:16:52 +0000 | [diff] [blame] | 37 | value="${whatisfixed.workdir}/${env.RELENG_BUILDER}" /> |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 38 | <property |
| 39 | name="buildBranch" |
| 40 | value="${buildBranch}" /> |
| 41 | <property |
david_williams | 39c5f65 | 2008-01-02 07:08:39 +0000 | [diff] [blame] | 42 | name="builder.whatisfixed.properties.file" |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 43 | value="${basedir}/whatisfixed.properties" /> |
| 44 | </ant> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 45 | |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 46 | <antcall target="sync" /> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 47 | |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 48 | </target> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 49 | |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 50 | <target name="releng"> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 51 | |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 52 | <available |
david_williams | 771c0a1 | 2007-11-17 02:19:01 +0000 | [diff] [blame] | 53 | file="${whatisfixed.workdir}/${env.RELENG}/maps/dependencies.properties" |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 54 | property="map.exists" /> |
| 55 | <available |
david_williams | d4b1fd3 | 2008-01-02 04:16:52 +0000 | [diff] [blame] | 56 | file="${whatisfixed.workdir}/${env.RELENG_BUILDER}/scripts/dependency/build.xml" |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 57 | property="releng.exists" /> |
| 58 | <antcall target="checkout-maps" /> |
david_williams | 39c5f65 | 2008-01-02 07:08:39 +0000 | [diff] [blame] | 59 | <antcall target="getbuilder" /> |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 60 | </target> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 61 | |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 62 | <target |
| 63 | name="checkout-maps" |
| 64 | unless="map.exists"> |
| 65 | <cvs |
| 66 | quiet="${env.CVS_QUIET}" |
| 67 | reallyquiet="${env.CVS_REALLY_QUIET}" |
| 68 | cvsRoot="${mapCvsRoot}" |
david_williams | a557052 | 2007-11-16 23:12:47 +0000 | [diff] [blame] | 69 | package="${env.RELENG}/maps/build.cfg" |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 70 | dest="${whatisfixed.workdir}" |
| 71 | tag="${wtp.cvsTag}" /> |
| 72 | </target> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 73 | |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 74 | <target |
david_williams | 39c5f65 | 2008-01-02 07:08:39 +0000 | [diff] [blame] | 75 | name="getbuilder" |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 76 | unless="releng.exists"> |
david_williams | 329769e | 2007-11-17 02:00:30 +0000 | [diff] [blame] | 77 | <property file="${whatisfixed.workdir}/${env.RELENG}/maps/build.cfg" /> |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 78 | <delete |
david_williams | d4b1fd3 | 2008-01-02 04:16:52 +0000 | [diff] [blame] | 79 | dir="${whatisfixed.workdir}/${env.RELENG_BUILDER}" |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 80 | failonerror="false" /> |
| 81 | <echo |
david_williams | 39c5f65 | 2008-01-02 07:08:39 +0000 | [diff] [blame] | 82 | message="Version tag for ${env.RELENG_BUILDER} is: ${builderVersion}" /> |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 83 | <cvs |
| 84 | quiet="${env.CVS_QUIET}" |
| 85 | reallyquiet="${env.CVS_REALLY_QUIET}" |
| 86 | cvsRoot="${mapCvsRoot}" |
david_williams | d4b1fd3 | 2008-01-02 04:16:52 +0000 | [diff] [blame] | 87 | package="${env.RELENG_BUILDER}" |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 88 | dest="${whatisfixed.workdir}" |
david_williams | 39c5f65 | 2008-01-02 07:08:39 +0000 | [diff] [blame] | 89 | tag="${builderVersion}" /> |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 90 | </target> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 91 | |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 92 | <target name="clean"> |
| 93 | <delete dir="${whatisfixed.workdir}" /> |
| 94 | </target> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 95 | |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 96 | <target name="sync"> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 97 | |
| 98 | |
| 99 | |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 100 | <echo message="RSYNC to: ${uploadRemoteDirectory}" /> |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 101 | |
david_williams | 13d378c | 2007-08-22 04:04:54 +0000 | [diff] [blame] | 102 | <exec executable="rsync"> |
| 103 | <arg |
| 104 | line="-e ssh -Cavz ${whatisfixed.dir} ${uploadUser}@${uploadServer}:${uploadRemoteDirectory}" /> |
| 105 | </exec> |
| 106 | </target> |
| 107 | |
ndai | 3c9e072 | 2006-10-28 05:43:50 +0000 | [diff] [blame] | 108 | |
| 109 | |
| 110 | </project> |