[Android] rename package to change versionCode

Jean-Baptiste Kempf git at videolan.org
Thu Oct 11 17:31:21 CEST 2012


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Oct 11 17:30:34 2012 +0200| [ed4645ce7290c2ca1cfb3bce5f0b1baba69a961a] | committer: Jean-Baptiste Kempf

rename package to change versionCode

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=ed4645ce7290c2ca1cfb3bce5f0b1baba69a961a
---

 rename_package.sh |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/rename_package.sh b/rename_package.sh
index f64c3d1..2c5d8fa 100755
--- a/rename_package.sh
+++ b/rename_package.sh
@@ -1,8 +1,16 @@
 #! /bin/sh
 
+# Usage rename_package.sh <new_name> <ABI>
+#  new_name should be a string
+#  ABI should be an integer, between 0 and 4
+
 OLD_NAME=org.videolan.vlc
 NEW_NAME=org.videolan.vlc.$1
 
+echo $NEW_NAME $2
+
+sed -i vlc-android/AndroidManifest.xml  -e "s/versionCode\(.*\)0\"/versionCode\1$2\"/"
+
 OLD_PATH=$(echo $OLD_NAME |sed 's/\./\//g')
 NEW_PATH=$(echo $NEW_NAME |sed 's/\./\//g')
 



More information about the Android mailing list