blob: 4cda497b666ced43eb3b1455eaef37a47a3a0315 (
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
|
#!/bin/bash
# To make a privacy badger release see wiki
if [ $# -ne 1 ] ; then
echo "Usage: $0 <version to release>"
exit 1
fi
export TARGET=$1
export GITTAG
if ! [ -f ./release-utils/config.sh ] ; then
echo "Missing config file. Cannot continue."
exit 1
fi
source ./release-utils/config.sh
if echo "$TARGET" | grep -q release- ; then
GITTAG=$TARGET
TARGET=$(echo "$TARGET" | sed s/release-//)
else
GITTAG=release-$TARGET
fi
if ! git show "$GITTAG" > /dev/null 2> /dev/null ; then
echo "$GITTAG is not a valid git target"
exit 1
fi
export PREPKG=pkg/privacy_badger-$TARGET.zip
export PREPKGCWS=pkg/privacy_badger-$TARGET.zip
echo "Making Opera zip"
if ! release-utils/make-release-zip.sh "$TARGET"; then
echo "Failed to build target $TARGET for Opera"
exit 1
fi
echo "Making Firefox release"
if ! release-utils/firefox-release.sh "$TARGET"; then
echo "Failed to build target $TARGET for Firefox"
exit 1
fi
./release-utils/post-release.sh "$TARGET"
rm -rf checkout
|