Mercurial > 510ConnectbotMonitor
comparison Makefile @ 31:0bc0b4798d9e
fix saystring(12) command for proper unicode and document it
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sun, 28 Apr 2019 14:45:56 -0700 |
parents | e6784ab8964c |
children |
comparison
equal
deleted
inserted
replaced
30:89b6389aa5b2 | 31:0bc0b4798d9e |
---|---|
1 #mc40 is "On Device Storage" | 1 #mc40 is "On Device Storage" |
2 #tc55 is "Internal Storage" | 2 #tc55 is "Internal Storage" |
3 | 3 |
4 na=$(shell find . -iname '*.c' -o -iname '*.h' -o -iname '*.cpp') | |
4 style:=release | 5 style:=release |
5 dest:=/run/user/1000/gvfs/mtp*/*torage/Download | 6 dest:=/run/user/1000/gvfs/mtp*/*torage/Download |
6 ver:=$(shell grep versionName app/src/main/AndroidManifest.xml | cut -d'"' -f2) | 7 ver:=$(shell grep versionName app/src/main/AndroidManifest.xml | cut -d'"' -f2) |
7 apk:='app/build/outputs/apk/510ConnectbotMonitor-$(ver).apk' | 8 apk:='app/build/outputs/apk/510ConnectbotMonitor-$(ver).$(style).apk' |
8 id:=$(shell hg id --id || echo 1) | 9 id:=$(shell hg id --id || echo 1) |
9 da:=$(shell date +%Y-%m-%d) | 10 da:=$(shell date '+%Y-%m-%dT%H:%M:%S') |
10 version:=\ | 11 version:=\ |
11 <?xml version=\"1.0\" encoding=\"utf-8\"?>\n\ | 12 <?xml version=\"1.0\" encoding=\"utf-8\"?>\n\ |
12 <resources>\n\ | 13 <resources>\n\ |
13 <string name=\"msg_version\" translatable=\"false\">510ConnectbotMonitor $(ver) ($(id) $(da))</string>\n\ | 14 <string name=\"msg_version\" translatable=\"false\">510ConnectbotMonitor $(ver) ($(id) $(da))</string>\n\ |
14 </resources>\n | 15 </resources>\n |
15 | 16 |
16 ifeq ($(style),release) | 17 ifeq ($(style),release) |
17 task:=assembleArmRelease | 18 task:=assembleArmRelease |
19 debug:=0 | |
18 else | 20 else |
19 task:=assembleArmDebug | 21 task:=assembleArmDebug |
22 debug:=1 | |
20 endif | 23 endif |
21 | 24 |
22 all: | 25 all: |
23 hg pull; hg update | 26 hg pull; hg update |
24 make builder | 27 make builder |
52 convert res/drawable-hdpi/icon.png -resize 50% -colorspace Gray res/drawable-hdpi/notification_icon.png | 55 convert res/drawable-hdpi/icon.png -resize 50% -colorspace Gray res/drawable-hdpi/notification_icon.png |
53 convert res/drawable-mdpi/icon.png -resize 50% -colorspace Gray res/drawable-mdpi/notification_icon.png | 56 convert res/drawable-mdpi/icon.png -resize 50% -colorspace Gray res/drawable-mdpi/notification_icon.png |
54 convert res/drawable-ldpi/icon.png -resize 50% -colorspace Gray res/drawable-ldpi/notification_icon.png | 57 convert res/drawable-ldpi/icon.png -resize 50% -colorspace Gray res/drawable-ldpi/notification_icon.png |
55 | 58 |
56 indentc: | 59 indentc: |
60 dos2unix $(na) | |
61 for i in $(na); do sed -i -e 's/\r//g' $$i; done | |
57 indent --line-length100 \ | 62 indent --line-length100 \ |
58 --brace-indent4 \ | 63 --brace-indent4 \ |
59 --braces-on-if-line \ | 64 --braces-on-if-line \ |
60 --braces-on-func-def-line \ | 65 --braces-on-func-def-line \ |
61 --case-brace-indentation4 \ | 66 --case-brace-indentation4 \ |
62 --case-indentation4 \ | 67 --case-indentation4 \ |
63 --comment-indentation60 \ | 68 --comment-indentation60 \ |
64 --cuddle-else \ | 69 --cuddle-else \ |
70 --cuddle-do-while \ | |
65 --declaration-comment-column60 \ | 71 --declaration-comment-column60 \ |
66 --no-tabs \ | 72 --no-tabs \ |
67 -nbbo \ | 73 -nbbo \ |
68 -npcs \ | 74 -npcs \ |
69 -nprs \ | 75 -nprs \ |
70 -npsl \ | 76 -npsl \ |
77 -bad -bap -bbb -sob \ | |
71 -saf -sai -saw \ | 78 -saf -sai -saw \ |
72 -i4 \ | 79 -i4 \ |
73 $(shell find . -iname *.c -o -iname *.h -o -iname *.cpp) | 80 $(na) |
74 | 81 |
75 indentjava: | 82 indentjava: |
76 astyle --style=java \ | 83 astyle --style=java \ |
77 --attach-namespaces \ | 84 --attach-namespaces \ |
78 --attach-classes \ | 85 --attach-classes \ |
91 --keep-one-line-blocks \ | 98 --keep-one-line-blocks \ |
92 --keep-one-line-statements \ | 99 --keep-one-line-statements \ |
93 --convert-tabs \ | 100 --convert-tabs \ |
94 --break-after-logical \ | 101 --break-after-logical \ |
95 --mode=java \ | 102 --mode=java \ |
96 $(shell find . -iname *.java | grep -v /gen/) | 103 $(shell find . -iname '*.java' | grep -v /gen/) |
97 |