Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Commit 76edb1e

Browse files
committed
update setup script for libudev0
1 parent c7f11bc commit 76edb1e

File tree

1 file changed

+30
-5
lines changed

1 file changed

+30
-5
lines changed

scripts/setup_linux_build.sh

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,38 @@
11
#!/bin/bash
22

3-
mkdir deps
43
zipname="cef_binary_3.1271.889_linux"
54

6-
if [ ! -f deps/cef.zip ]; then
7-
wget -O deps/cef.zip https://github.com/downloads/pritambaral/brackets-shell/$zipname-32.zip
5+
mkdir deps
6+
pushd deps
7+
8+
# download CEF
9+
if [ ! -f cef.zip ]; then
10+
wget -O cef.zip https://github.com/downloads/pritambaral/brackets-shell/$zipname-32.zip
811
fi
912

10-
unzip deps/cef.zip -d deps
11-
mv deps/$zipname deps/cef
13+
# extract CEF
14+
rm -rf cef
15+
unzip cef.zip
16+
mv $zipname cef
17+
18+
# get libudev0 for Ubuntu 13.04
19+
if egrep -q "13\.04" /etc/issue; then
20+
wget -O libudev0_175-0ubuntu19_i386.deb http://launchpadlibrarian.net/132294322/libudev0_175-0ubuntu19_i386.deb
21+
dpkg -i *.deb
22+
apt-get install -f
23+
fi
24+
25+
# download chromium dependency script
26+
if [ ! -f install-build-deps.sh ]; then
27+
wget -O install-build-deps.sh http://src.chromium.org/svn/trunk/src/build/install-build-deps.sh
28+
chmod 755 install-build-deps.sh
29+
fi
30+
31+
# install dependecies
32+
install-build-deps.sh --no-chromeos-fonts
33+
34+
popd
1235

36+
# install and run gyp to create makefile
37+
apt-get install gyp
1338
gyp --depth .

0 commit comments

Comments
 (0)