Skip to content

Commit 0e066eb

Browse files
James LuJames Lu
authored andcommitted
install-dev-dependencies: make packages installable on Debian
On Debian, Chromium uses the package name 'chromium' instead of 'chromium-browser', and a rebranded version of Firefox, Iceweasel, is shipped instead.
1 parent 0b955d5 commit 0e066eb

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

install-dev-dependencies.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@
33
# HTTPS Everywhere
44
set -o errexit -o xtrace
55
if type apt-get >/dev/null ; then
6+
BROWSERS="firefox chromium-browser"
7+
if [[ "$(lsb_release -is)" == "Debian" ]]; then
8+
# Iceweasel is the rebranded Firefox that Debian ships, and Chromium
9+
# takes the name of 'chromium' instead of 'chromium-browser' in
10+
# Debian 7 (wheezy) and later.
11+
BROWSERS="iceweasel chromium"
12+
fi
613
sudo apt-get install libxml2-dev libxml2-utils libxslt1-dev python-dev \
7-
firefox chromium-browser zip sqlite3 python-pip libcurl4-openssl-dev
14+
$BROWSERS zip sqlite3 python-pip libcurl4-openssl-dev
815
elif type brew >/dev/null ; then
916
brew list python &>/dev/null || brew install python
1017
brew install libxml2 gnu-sed

0 commit comments

Comments
 (0)