-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathimport.sh
executable file
·27 lines (20 loc) · 982 Bytes
/
import.sh
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
#!/bin/bash
set -e
source ./config.sh
./reset.sh
cd browser/fenix
# remove translations
for LANG in 'an' 'ar' 'ast' 'az' 'be' 'bg' 'bn' 'br' 'bs' 'ca' 'cak' 'co' 'cs' 'cy' 'da' 'dsb' 'el' 'en-rCA' 'en-rGB' 'eo' 'es-rAR' 'es-rCL' 'es-rES' 'es-rMX' 'et' 'eu' 'fa' 'ff' 'fi' 'fy-rNL' 'ga-rIE' 'gd' 'gn' 'gu-rIN' 'hi-rIN' 'hr' 'hsb' 'hy-rAM' 'in' 'is' 'iw' 'ka' 'kab' 'kk' 'kn' 'lij' 'lo' 'lt' 'ml' 'mr' 'my' 'nb-rNO' 'nn-rNO' 'oc' 'pa-rIN' 'pt-rPT' 'rm' 'ro' 'sk' 'sl' 'sq' 'sr' 'su' 'sv-rSE' 'ta' 'te' 'th' 'tr' 'trs' 'uk' 'ur' 'uz' 'vec' 'vi'
do
git rm -r app/src/main/res/values-$LANG
done
git commit -m "Remove unsupported translations"
# copy assets into browser tree
rsync -av ../../assets/ ../../browser/fenix
git add . && git commit -a -m "Copy static assets"
# Install Ghostery Browser Extension
./bootstrap.sh
git add . && git commit -a -m "Add extensions"
git tag -f $FENIX_TAG-start
# apply patches
git am --ignore-space-change --ignore-whitespace ../../patches/*