diff options
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -126,18 +126,18 @@ <xpath input="AndroidManifest.xml" expression="/manifest/@android:versionName" output="manifest.version.name" /> - <!-- checkout notrans.xml so we can ignore it in our index --> - <exec executable="git"> - <arg line="checkout res/values/notrans.xml"/> - </exec> - <!-- find out the description of the current Git commit --> <exec executable="git" outputproperty="git.revision"> <arg line="describe --match 'v[0-9]*' --dirty"/> </exec> - <replaceregexp file="${resource.absolute.dir}/values/notrans.xml" encoding="utf8" match='(\x3Cstring name="msg_version">)[^\x3C]*(\x3C/string>)' - replace='\1${ant.project.name} ${manifest.version.name} (${git.revision} ${build.date})\2' /> + <!-- write out to res/values/version.xml --> + <echo file="${resource.absolute.dir}/values/version.xml" encoding="utf8"><![CDATA[<?xml version="1.0" encoding="utf-8"?> +<resources> + <string name="msg_version" translatable="false">${ant.project.name} ${manifest.version.name} (${git.revision} ${build.date})</string> +</resources> +]]></echo> + <echo>Updated "msg_version" to: ${ant.project.name} ${manifest.version.name} (${git.revision} ${build.date})</echo> </target> |