mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 18:02:15 -05:00
catch trying to set the version without passing a version
This commit is contained in:
parent
bf9022403d
commit
8797e2228f
@ -84,6 +84,8 @@
|
||||
</target>
|
||||
|
||||
<target name="set-version">
|
||||
<echo>Setting version to ${version-name}</echo>
|
||||
<fail unless="version-name">You can't set the version without passing -Dversion-name=1.234</fail>
|
||||
<exec executable="perl" failonerror="true">
|
||||
<arg line="-p -i.bak -e's/(?<=android:versionName=")(.*?)(?=")/${version-name}/' AndroidManifest.xml"/>
|
||||
</exec>
|
||||
|
Loading…
Reference in New Issue
Block a user