flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [1/4] git commit: [flex-asjs] [refs/heads/develop] - add a script to update version numbers
Date Fri, 09 Sep 2016 20:13:21 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop e87787017 -> 35135423b


add a script to update version numbers


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/37941c56
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/37941c56
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/37941c56

Branch: refs/heads/develop
Commit: 37941c566e460f2dd2be2919476c540b46feef08
Parents: e877870
Author: Alex Harui <aharui@apache.org>
Authored: Fri Sep 9 13:00:15 2016 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Fri Sep 9 13:00:15 2016 -0700

----------------------------------------------------------------------
 build.xml | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/37941c56/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index 5410b78..d484606 100644
--- a/build.xml
+++ b/build.xml
@@ -942,6 +942,35 @@
         </sequential>
     </macrodef>	
     
+    <!--
+	    Update various files for a new release version.
+     -->
+    <target name="update-version">
+        <fail message="old-version and new-version must be set in the form major.minor.hotfix
i.e. 0.7.0">
+            <condition>
+                <or>
+                    <not>
+                        <isset property="old-version"/>
+                    </not>
+                    <not>
+                        <isset property="new-version"/>
+                    </not>
+                </or>
+            </condition>
+        </fail>
+        <replace file="${FLEXJS_HOME}/build.properties"
+            token="${old-version}"
+            value="${new-version}" />
+        <replace file="${FLEXJS_HOME}/installer.xml"
+            token="${old-version}"
+            value="${new-version}" />
+        <replace dir="${FLEXJS_HOME}/examples"
+            token="&lt;versionNumber&gt;${old-version}&lt;/versionNumber&gt;"
+            value="&lt;versionNumber&gt;${new-version}&lt;/versionNumber&gt;"
>
+            <include name="**/*-app.xml"/>
+        </replace>
+    </target>
+    
 	<!--
 	    Update all frameworks Version.as files in the kit stagging area with the 
 	    latest version build number info.


Mime
View raw message