summaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorJames Moger <james.moger@gmail.com>2013-04-10 09:56:03 -0400
committerJames Moger <james.moger@gmail.com>2013-04-10 10:30:52 -0400
commit499c0be0c732f9b4c472540bb0fe09b356d9146a (patch)
tree42bb9afd182bcd73cca7290597eaf394440cc1c7 /build.xml
parent2620640fabf81372e9dd57ca275297b96f8ddfbe (diff)
downloadiciql-499c0be0c732f9b4c472540bb0fe09b356d9146a.tar.gz
iciql-499c0be0c732f9b4c472540bb0fe09b356d9146a.zip
Added release process script template
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml23
1 files changed, 23 insertions, 0 deletions
diff --git a/build.xml b/build.xml
index 18deb99..0c1a670 100644
--- a/build.xml
+++ b/build.xml
@@ -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">