diff options
author | James Moger <james.moger@gmail.com> | 2013-04-10 09:56:03 -0400 |
---|---|---|
committer | James Moger <james.moger@gmail.com> | 2013-04-10 10:30:52 -0400 |
commit | 499c0be0c732f9b4c472540bb0fe09b356d9146a (patch) | |
tree | 42bb9afd182bcd73cca7290597eaf394440cc1c7 /build.xml | |
parent | 2620640fabf81372e9dd57ca275297b96f8ddfbe (diff) | |
download | iciql-499c0be0c732f9b4c472540bb0fe09b356d9146a.tar.gz iciql-499c0be0c732f9b4c472540bb0fe09b356d9146a.zip |
Added release process script template
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -259,6 +259,29 @@ </tag>
</mx:commit>
+ <!-- create the release process script -->
+ <mx:if>
+ <os family="windows" />
+ <then>
+ <!-- Windows PowerShell script -->
+ <!-- set-executionpolicy remotesigned -->
+ <property name="recipe" value="release_${project.version}.ps1" />
+ </then>
+ <else>
+ <!-- Bash script -->
+ <property name="recipe" value="release_${project.version}.sh" />
+ </else>
+ </mx:if>
+ <delete file="${recipe}" failonerror="false" quiet="true" verbose="false" />
+ <!-- Work-around for lack of proper ant property substitution in copy -->
+ <property name="dollar" value="$"/>
+ <copy file="release.template" tofile="${recipe}">
+ <filterset begintoken="${dollar}{" endtoken="}">
+ <filter token="project.version" value="${project.version}" />
+ <filter token="project.commitId" value="${project.commitId}" />
+ </filterset>
+ </copy>
+
<!-- next cycle -->
<mx:version stage="snapshot" incrementNumber="minor" dryrun="${dryrun}" />
<mx:commit showtitle="no">
|