Skip to content

Commit 6b5d2a8

Browse files
committed
init.sh: add instruction to install packages for Ubuntu
Signed-off-by: Olga Telezhnaia <[email protected]>
1 parent 60ce1e4 commit 6b5d2a8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

contrib/vscode/init.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ die () {
55
exit 1
66
}
77

8+
if grep '^NAME="Ubuntu"' /etc/os-release >/dev/null 2>&1 &&
9+
(test ! -f /usr/include/openssl/ssl.h ||
10+
test ! -f /usr/include/expat.h ||
11+
test ! -f /usr/include/zlib.h) ;
12+
then
13+
die "Some files missing. Try to run these commands in advance:
14+
sudo apt-get update
15+
sudo apt-get install git gcc make libssl-dev libcurl4-openssl-dev \\
16+
libexpat-dev tcl tk gettext git-email zlib1g-dev"
17+
fi
18+
819
cd "$(dirname "$0")"/../.. ||
920
die "Could not cd to top-level directory"
1021

0 commit comments

Comments
 (0)