blob: a109f8c5c8720c28f98cffc9932317e06d58ae57 (
plain)
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
|
#!/bin/bash
#
# Copyright (C) 2017 Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. $(dirname $0)/common.sh
RELEASE="11-nlnet-eu-grant-825310-replicant-update"
if [ -z "${RELEASE}" ] ; then
echo "You need to define the"\
"RELEASE variable in the releasevars.sh script."
echo "This needs to reflect the Replicant version you are releasing."
echo
echo "For example," \
"if you are releasing Replicant 6.0 0004 RC2, you can use:"
echo " RELEASE=\"6.0-0004-rc2\""
echo
echo "Or if you just want to"\
"release a build from the replicant-6.0 branch:"
echo " RELEASE=\"6.0\""
exit 1
fi
RELEASE_DEVICES_REPLICANT_6="\
espresso3g \
espressowifi \
i9100 \
i9300 \
i9305 \
maguro \
n5100 \
n5110 \
n7000 \
n7100 \
"
RELEASE_DEVICES_REPLICANT_11="\
i9300 \
i9305 \
"
if is_replicant_11 ; then
RELEASE_DEVICES="${RELEASE_DEVICES_REPLICANT_11}"
elif is_replicant_6 ; then
RELEASE_DEVICES="${RELEASE_DEVICES_REPLICANT_6}"
fi
# The files are in out/dist/${device}/
RELEASE_IMAGES=""
for device in ${RELEASE_DEVICES} ; do
RELEASE_IMAGES="${RELEASE_IMAGES} recovery-${device}.img"
RELEASE_IMAGES="${RELEASE_IMAGES} replicant-${RELEASE}-${device}.zip"
done
RELEASE_KEY="FB31DBA3AB8DB76A4157329F7651568F80374459"
if [ -z "${RELEASE_KEY}" ] ; then
echo "You need to"\
"define the RELEASE_KEY variable in the releasevars.sh script."
echo "This variable"\
"contains the gpg key that will sign the images you are releasing."
echo
echo "For example:"
echo " RELEASE_KEY=\"FB31DBA3AB8DB76A4157329F7651568F80374459\""
exit 1
fi
REPO="repo"
COLOR=1
METADATA="$RELEASE_DIR/metadata"
SECURITY="$RELEASE_DIR/security"
SCRIPTS="$RELEASE_DIR/scripts"
TOOLS="$RELEASE_DIR/tools"
IMAGES="$RELEASE_DIR/images"
|