Mercurial > 510Connectbot
comparison Makefile @ 444:5a74f1b7c1db
migrate from Eclipse to Android Studio
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 03 Dec 2015 12:33:34 -0800 |
parents | 07deaa851e7d |
children | 621313775834 |
comparison
equal
deleted
inserted
replaced
443:07deaa851e7d | 444:5a74f1b7c1db |
---|---|
2 #tc55 is "Internal Storage" | 2 #tc55 is "Internal Storage" |
3 | 3 |
4 style:=release | 4 style:=release |
5 dest:=/run/user/1000/gvfs/mtp*/*torage/Download | 5 dest:=/run/user/1000/gvfs/mtp*/*torage/Download |
6 apk:='app/build/outputs/apk/510Connectbot-$(style).apk' | 6 apk:='app/build/outputs/apk/510Connectbot-$(style).apk' |
7 ver:=$(shell grep versionName app/src/main/AndroidManifest.xml | cut -d'"' -f2) | |
8 id:=$(shell hg id --id || echo 1) | |
9 da:=$(shell date +%Y-%m-%d) | |
7 version:=\ | 10 version:=\ |
8 <?xml version=\"1.0\" encoding=\"utf-8\"?>\n\ | 11 <?xml version=\"1.0\" encoding=\"utf-8\"?>\n\ |
9 <resources>\n\ | 12 <resources>\n\ |
10 <string name=\"msg_version\" translatable=\"false\">510Connectbot $(ver) ($(id) $(da))</string>\n\ | 13 <string name=\"msg_version\" translatable=\"false\">510Connectbot $(ver) ($(id) $(da))</string>\n\ |
11 </resources>\n | 14 </resources>\n |
21 hg pull; hg update | 24 hg pull; hg update |
22 make builder | 25 make builder |
23 | 26 |
24 builder: prep | 27 builder: prep |
25 rm -rf app/build/* | 28 rm -rf app/build/* |
26 ver:=$(shell grep versionName app/src/main/AndroidManifest.xml | cut -d'"' -f2) | |
27 id:=$(shell hg id --id) | |
28 da:=$(shell date +%Y-%m-%d) | |
29 echo -e "$(version)" >app/src/main/res/values/version.xml | 29 echo -e "$(version)" >app/src/main/res/values/version.xml |
30 cat app/src/main/res/values/version.xml | 30 cat app/src/main/res/values/version.xml |
31 ./gradlew $(task) | 31 ./gradlew $(task) |
32 mv app/build/outputs/apk/app-arm-$(style).apk $(apk) | 32 mv app/build/outputs/apk/app-arm-$(style).apk $(apk) |
33 ls -al app/build/outputs/apk | 33 ls -al app/build/outputs/apk |