1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-22 04:41:34 +03:00

Add get-deps script for installing dependencies

This commit is contained in:
Wez Furlong 2018-02-25 09:22:19 -08:00
parent 83604ca888
commit 6145667e5d
3 changed files with 24 additions and 5 deletions

View File

@ -15,8 +15,9 @@ There's never enough! Pretty much anything is fair game to improve here.
There are a lot of targets out there. Today we have docs that are Ubuntu biased
and I know that there are a lot flavors of Linux. Rather than expand the README
with intructions for those, I'd like to just bake those instructions into a script
and expand that as we go.
with intructions for those, please translate the instructions into steps that
can be run in the [`get-deps`](https://github.com/wez/wezterm/blob/master/get-deps)
script.
## Contributing code

View File

@ -22,9 +22,7 @@ deps are needed for ubuntu systems:
```
$ curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly
$ sudo apt-get install -y ragel libxcb-icccm4-dev libxcb-ewmh-dev \
libxcb-keysyms1-dev libfontconfig1-dev libfreetype6-dev libegl1-mesa-dev \
libharfbuzz-dev
$ sudo ./get-deps
$ git clone --depth=1 --branch=master https://github.com/wez/wezterm.git
$ cd wezterm
$ cargo build --release

20
get-deps Executable file
View File

@ -0,0 +1,20 @@
#!/bin/sh
case `lsb_release -ds` in
Ubuntu*)
apt-get install -y \
bsdutils \
libxcb-icccm4-dev \
libxcb-ewmh-dev \
libxcb-keysyms1-dev \
libfontconfig1-dev \
libfreetype6-dev \
libegl1-mesa-dev \
libharfbuzz-dev \
ragel
;;
*)
echo "Please contribute the commands to install the deps"
echo "For `lsb_release -ds`"
;;
esac