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 <[email protected]> Authored: Fri Sep 9 13:00:15 2016 -0700 Committer: Alex Harui <[email protected]> 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="<versionNumber>${old-version}</versionNumber>" + value="<versionNumber>${new-version}</versionNumber>" > + <include name="**/*-app.xml"/> + </replace> + </target> + <!-- Update all frameworks Version.as files in the kit stagging area with the latest version build number info.
