mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-23 16:18:50 -05:00
further tweaks to our "upload" target
This commit is contained in:
parent
56ffee1554
commit
99a7015a5d
@ -69,11 +69,11 @@
|
||||
|
||||
<!-- A bloody hack, but a useful and quick one -->
|
||||
<target name="get-version">
|
||||
<exec executable="perl" failonerror="true" outputproperty="version-code" errorproperty="version-error">
|
||||
<exec executable="perl" failonerror="true" outputproperty="version-name" errorproperty="version-error">
|
||||
<!-- yes, ant needs " for " in doublequoted strings. -->
|
||||
<arg line="-ne'/android:versionCode.*?=.*?"(\d+)"/ ? print $1 : undef ' AndroidManifest.xml" />
|
||||
<arg line="-ne'/android:versionName.*?=.*?"(.*?)"/ ? print $1 : undef ' AndroidManifest.xml" />
|
||||
</exec>
|
||||
<echo>Building version number ${version-code}</echo>
|
||||
<echo>Building version number ${version-name}</echo>
|
||||
</target>
|
||||
|
||||
<target name="get-version-from-git">
|
||||
@ -125,7 +125,7 @@
|
||||
<jar destfile="${rclib}" basedir="${out.classes.dir}" includes="${rcdir}" />
|
||||
</target>
|
||||
|
||||
<target name="upload" depends="release,get-version">
|
||||
<target name="upload" depends="clean,get-version,release">
|
||||
<echo>Uploading to Google Code using Google::Code::Upload</echo>
|
||||
<exec executable="mv" failonerror="true">
|
||||
<arg value="${out.release.package}" />
|
||||
|
Loading…
Reference in New Issue
Block a user