forked from EFForg/https-everywhere
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-dev-dependencies.sh
More file actions
executable file
·30 lines (27 loc) · 944 Bytes
/
install-dev-dependencies.sh
File metadata and controls
executable file
·30 lines (27 loc) · 944 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
29
30
#!/bin/bash -ex
# Install packages that are necessary and/or useful to build and debug
# HTTPS Everywhere
set -o errexit -o xtrace
if type apt-get >/dev/null ; then
sudo apt-get install libxml2-dev libxml2-utils libxslt1-dev python-dev \
<<<<<<< HEAD
zip sqlite3
=======
firefox chromium-browser zip sqlite3 python-pip libcurl4-openssl-dev
>>>>>>> 91898860a94f39e61582766a7645ab6a78b2ee0a
elif type brew >/dev/null ; then
brew install python libxml2 gnu-sed
if ! echo $PATH | grep -ql /usr/local/bin ; then
echo '/usr/local/bin not found in $PATH, please add it.'
fi
fi
# Get the addon SDK submodule and rule checker
git submodule init
git submodule update
# Install Python packages
pip install --user --no-allow-insecure --no-allow-external -r requirements.txt
cd https-everywhere-checker
pip install --user -r requirements.txt
cd -
# Install a hook to run tests before pushing.
ln -sf ../../test.sh .git/hooks/pre-push