forked from varunchopra/debian-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 950 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (22 loc) · 950 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# This makefile also checks if app and kit are in sync
# Versioning rules: Publish kit with major.minor, publish
# the app with major.minor.sub, sub is the market version
# number incremented for each Google-play app-publishing.
VERSION=1.6
SHELL=/bin/bash
all: doc version
(cd kit && ./shar.sh) > debian-kit-$(subst .,-,$(VERSION)).shar
@echo Ok.
doc:
diff kit/debian-kit-en.html app/assets/debian-kit-en.html
diff -r kit/images/ app/assets/images/
version:
grep -q '^# Version $(subst .,\.,$(VERSION)),' kit/bootdeb
grep -q '^# Version $(subst .,\.,$(VERSION)),' kit/autorun
grep -q '^# Version $(subst .,\.,$(VERSION)),' kit/initctl
grep -q '^# Version $(subst .,\.,$(VERSION)),' kit/mk-debian
grep -q '^# Version $(subst .,\.,$(VERSION)),' kit/shar.sh
grep -q '^# Version $(subst .,\.,$(VERSION)),' kit/uninstall
grep -q 'android:versionName="$(subst .,\.,$(VERSION))\.' app/AndroidManifest.xml
clean:
rm -v $$(find -name "*~")