Skip to content

Commit 820ae17

Browse files
authored
Add Ubuntu 20.04 branch to linux/install-dependencies.sh
1 parent b6762a1 commit 820ae17

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

utils/webassembly/linux/install-dependencies.sh

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,27 @@
33
set -ex
44

55
sudo apt update
6-
sudo apt install -y \
7-
git ninja-build clang python python-six \
8-
uuid-dev libicu-dev icu-devtools libbsd-dev \
9-
libedit-dev libxml2-dev libsqlite3-dev swig \
10-
libpython-dev libncurses5-dev pkg-config \
11-
libblocksruntime-dev libcurl4-openssl-dev \
12-
systemtap-sdt-dev tzdata rsync wget llvm zip unzip
6+
7+
if [ $(grep RELEASE /etc/lsb-release) == "DISTRIB_RELEASE=18.04" ]; then
8+
sudo apt install -y \
9+
git ninja-build clang python python-six \
10+
uuid-dev libicu-dev icu-devtools libbsd-dev \
11+
libedit-dev libxml2-dev libsqlite3-dev swig \
12+
libpython-dev libncurses5-dev pkg-config \
13+
libblocksruntime-dev libcurl4-openssl-dev \
14+
systemtap-sdt-dev tzdata rsync wget llvm zip unzip
15+
elif [ $(grep RELEASE /etc/lsb-release) == "DISTRIB_RELEASE=20.04" ]; then
16+
sudo apt install -y \
17+
git ninja-build clang python python-six \
18+
uuid-dev libicu-dev icu-devtools libbsd-dev \
19+
libedit-dev libxml2-dev libsqlite3-dev swig \
20+
libpython2-dev libncurses5-dev pkg-config \
21+
libblocksruntime-dev libcurl4-openssl-dev \
22+
systemtap-sdt-dev tzdata rsync wget llvm zip unzip
23+
else
24+
echo "Unknown Ubuntu version"
25+
exit 1
26+
fi
1327
sudo apt clean
1428

1529
SOURCE_PATH="$( cd "$(dirname $0)/../../../.." && pwd )"

0 commit comments

Comments
 (0)