From 6145667e5dfe184aa1cb5ac3bef02806d490234d Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 25 Feb 2018 09:22:19 -0800 Subject: [PATCH] Add get-deps script for installing dependencies --- CONTRIBUTING.md | 5 +++-- README.md | 4 +--- get-deps | 20 ++++++++++++++++++++ 3 files changed, 24 insertions(+), 5 deletions(-) create mode 100755 get-deps diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f146fcc54..200d75446 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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 diff --git a/README.md b/README.md index 224c9006c..841c95976 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/get-deps b/get-deps new file mode 100755 index 000000000..79e85b73b --- /dev/null +++ b/get-deps @@ -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