-
Notifications
You must be signed in to change notification settings - Fork 1
/
build-package
executable file
·119 lines (94 loc) · 1.58 KB
/
build-package
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#!/bin/bash
VERSION=17.1.20180507
CWD=$(readlink -m "${BASH_SOURCE[0]}")
CWD=$(dirname "${CWD}")
for funcfile in pkg-full pkg-microg pkg-fdroid \
pkg-misc update common download database; do
source "${CWD}/data/build-package.${funcfile}" || exit 1
done
if [[ "$OSTYPE" == "darwin"* ]]; then
if ! [ -x "$(command -v brew)" ]; then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
if ! [ -x "$(command -v gsed)" ]; then
brew install gnu-sed
fi
alias sed=gsed
fi
[[ -z ${1} ]] && show_help
for opt in ${@}; do
case ${opt} in
full)
mk_pkg_full
;;
microg )
mk_pkg_microg
;;
fdroid )
mk_pkg_fdroid
;;
patcher )
mk_pkg_patcher
;;
uninstaller )
mk_pkg_uninstaller
;;
setupwizard )
mk_pkg_setupwizard
;;
all )
mk_pkg_full
mk_pkg_microg
mk_pkg_fdroid
mk_pkg_patcher
mk_pkg_uninstaller
mk_pkg_setupwizard
;;
ver )
increase_version_number "${@}"
;;
bump )
increase_module_version
;;
dalvik )
dalvikize_jar "${2}"
;;
pull )
nanodroid_pull
check_nanodroid
;;
u-microg )
update_microg
;;
u-fdroid )
update_fdroid
;;
u-apps )
update_apps
;;
u-swipe )
update_swipe
;;
u-gsync )
update_gsync
;;
check )
check_nanodroid
;;
clean )
echo -ne "\nAre you sure to delete all untracked files?\n >> enter [y] or [j] to continue: "
read -r user_input
case "${user_input}" in
y | Y | j | J )
git clean -fd
;;
* )
echo "aborted"
;;
esac
;;
* )
show_help
;;
esac
done